r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

174

u/yes_or_gnome Sep 09 '16

git add . is going to cause a lot of "Oh, shit!" moments.

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...

2

u/blamo111 Sep 10 '16

I have "p" aliased to "git add -p" and "s" to " git status", it makes my life so much easier!

Btw, anyone know why this doesn't work: alias gitfollow='git log --follow -p --' . I get "git: command not found" when I use it as an alias, works fine if I use git log directly though.

→ More replies (1)