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
Top comments (3)
There is also
git add -i
, very useful most of the times!Want to try a #bloggolf blog post on it?? We will give all the 🦄
I don't think I can provide much value through an article, considering all the other resources that are out there. Also, what is a #bloggolf blog post ?