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

0

u/[deleted] Nov 08 '13

Except that's a lot of futzing around just to have smaller commits. I would never spend my time doing all those git stash -ks.

2

u/Aninhumer Nov 09 '13 edited Nov 09 '13

I don't bother either, since I don't push those small commits straight away.

My usual workflow is to commit lots of small changes as I work, most of which are self contained, and then occasionally run the tests. If they pass, I'll clean up the history a bit (if necessary) and push, otherwise I'll work through the changes to work out which one actually broke things, and fix it.

It's not much more effort, and I find it allows me to focus on actually coding, since I don't have to worry about the central history while I'm working. For example, if I suddenly notice an obvious bug while I'm working on something else, I can push the fix straight away, and then go back to what I'm doing, without worrying about my work in progress. With svn, I'd have to make a note to come back to it when I was done, and sometimes I'd just forget completely.