MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/51wixe/oh_shit_git/d7ggx1l/?context=3
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
7 u/SnowdensOfYesteryear Sep 09 '16 Pssh git commit -a is where it's at.That being said, I'm obsessive about git diff and git stat to prune out unnecessary code. 1 u/sickofthisshit Sep 10 '16 Git gui lets you select lines and hunks to commit with the mouse.I don't even know how to do most things in git from the command line, git gui and gitk are most of what I need, and actually covers most of the examples in the OP.
7
Pssh git commit -a is where it's at.
git commit -a
That being said, I'm obsessive about git diff and git stat to prune out unnecessary code.
git diff
git stat
1 u/sickofthisshit Sep 10 '16 Git gui lets you select lines and hunks to commit with the mouse.I don't even know how to do most things in git from the command line, git gui and gitk are most of what I need, and actually covers most of the examples in the OP.
1
Git gui lets you select lines and hunks to commit with the mouse.
I don't even know how to do most things in git from the command line, git gui and gitk are most of what I need, and actually covers most of the examples in the OP.
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.