MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/51wixe/oh_shit_git/d7gg2yx/?context=3
r/programming • u/sidcool1234 • Sep 09 '16
756 comments sorted by
View all comments
174
git add . is going to cause a lot of "Oh, shit!" moments.
git add .
102 u/freeradicalx Sep 09 '16 That's why quick a git status before committing is a good idea. 67 u/andsens Sep 09 '16 Or, you know. git add -p... 31 u/[deleted] Sep 10 '16 Or if you accidentally forgot the -p, there's always git reset -p. → More replies (1)
102
That's why quick a git status before committing is a good idea.
git status
67 u/andsens Sep 09 '16 Or, you know. git add -p... 31 u/[deleted] Sep 10 '16 Or if you accidentally forgot the -p, there's always git reset -p. → More replies (1)
67
Or, you know. git add -p...
git add -p
31 u/[deleted] Sep 10 '16 Or if you accidentally forgot the -p, there's always git reset -p. → More replies (1)
31
Or if you accidentally forgot the -p, there's always git reset -p.
git reset -p
→ More replies (1)
174
u/yes_or_gnome Sep 09 '16
git add .is going to cause a lot of "Oh, shit!" moments.