tbroyer,
@tbroyer@piaille.fr avatar

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 than git 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

#git #TIL #TodayILearned

  • All
  • Subscribed
  • Moderated
  • Favorites
  • til
  • DreamBathrooms
  • magazineikmin
  • ethstaker
  • InstantRegret
  • tacticalgear
  • rosin
  • love
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • cubers
  • thenastyranch
  • mdbf
  • provamag3
  • modclub
  • GTA5RPClips
  • normalnudes
  • khanakhh
  • everett
  • cisconetworking
  • osvaldo12
  • anitta
  • Leos
  • Durango
  • tester
  • megavids
  • JUstTest
  • All magazines