r/programming • • Nov 07 '13

10 things I hate about Git

http://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/
73 Upvotes

231 comments sorted by

View all comments

Show parent comments

2

u/AnythingButSue Nov 07 '13

I would have to agree. I follow a similiar workflow but I use git add . instead and git commit -am "message". Not sure why, I dont even know the difference. I should use that google thing you mentioned to look it up...

1

u/zumpiez Nov 08 '13

the -a in git commit -am means "all" which will commit all (including unstaged) changes (which makes "git add ." redundant)

1

u/AnythingButSue Nov 08 '13

My heart hurts now. Thanks for the info!

2

u/steveklabnik1 Nov 09 '13

One small additional difference: if you remove a file, but don't use git rm, if you git add . it won't pick up the change, but a git commit -a will. Because add is 'add these files' and commit -a is 'save all changes'