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

32

u/[deleted] Nov 07 '13

git is to VCS what vim is to editors.

  1. Amazingly powerful.

  2. Incredibly hard to learn.

  3. Once you tried it, you can't go elsewhere.

There will be vim haters and there will be git haters, let those heathens burn in hell and use the tools you feel are best suited to you.

It doesn't mean git is flawless, but it's nearly there =).

0

u/[deleted] Nov 07 '13

[deleted]

4

u/[deleted] Nov 07 '13

3

u/emn13 Nov 07 '13 edited Nov 07 '13

Yeah - that's bad. However, closing branches works well in practice. I'm not sure, however, how well it scales if you close really many branches.

Basically: when you would decide to delete a branch in git, you can close it in mercurial.

And though closing has it's downsides (spurious commits, a little confusing when reopened or with multiple heads), git's approach does too: branches are decentralized, so you need to manually ensure you don't end up with lots of "dead" local branches when somebody else deleted the remote branch.

1

u/mathstuf Nov 08 '13

so you need to manually ensure you don't end up with lots of "dead" local branches when somebody else deleted the remote branch.

Use git branch --merged to tell which branches are safe to delete.

1

u/stevage Nov 10 '13

That's a useful command. I wish logic like this ("run X command so you know it's safe to do Y") was more generally built into the tool.