tbroyer, TIL about
git add -N
for when I want to start tracking files but only want to include part of their content in the commit:git add -N file.txt git add -p file.txt
(I actually generally use
git citool
rather thangit add -p
, but the result is the same: you can now add only parts of the file, rather than an all-or-nothing)https://git-scm.com/docs/git-add#Documentation/git-add.txt--N
Add comment