Better Git Add - 01-11-20

$ git add -p

I tend to use magit in emacs to stange and unstage files/hunks but in a pinch -p or git add -i + selecting patch works great. You can choose exactly which hunks you want to stage leading to cleaner incrimental commits. The bonus to using magit is you can easily edit the file during the process.

source:

git docs

\- [ git ]