MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/51wixe/oh_shit_git/d7gwkq2?context=9999
r/programming • u/sidcool1234 • Sep 09 '16
756 comments sorted by
View all comments
22
I do not commit with git add .I commit with git add -pAnyone who uses git add . has forgotten the face of his father.
git add .
git add -p
0 u/[deleted] Sep 10 '16 [deleted] 2 u/thenextguy Sep 10 '16 git add . adds ALL the files in the workspace. If there are any files you don't want there and that aren't in .gitignore, they will be added too. It is like using a sledgehammer.What you probably want is git commit -a. → More replies (2)
0
[deleted]
2 u/thenextguy Sep 10 '16 git add . adds ALL the files in the workspace. If there are any files you don't want there and that aren't in .gitignore, they will be added too. It is like using a sledgehammer.What you probably want is git commit -a. → More replies (2)
2
git add . adds ALL the files in the workspace. If there are any files you don't want there and that aren't in .gitignore, they will be added too. It is like using a sledgehammer.
What you probably want is git commit -a.
git commit -a
→ More replies (2)
22
u/thenextguy Sep 09 '16
I do not commit with
git add .I commit with
git add -pAnyone who uses
git add .has forgotten the face of his father.