Blog
TIL: the Git -p Flag!
The git -p flag enables interactive patch mode, letting you selectively stage, checkout, or commit specific hunks of changes. Once you learn it, you'll want to use it everywhere.
Jan 15, 2021

Today I learned about the -p flag in git and now I want to use it everywhere!
According to the man page:
$ man git-add
...
-p, --patch
Use the interactive patch selection interface to chose which changes to commit. See git-add(1) for details
...You can use the -p flag with checkout, add, commit


/Contact Us

Modernize your legacy with Focused
Get in touch