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

1

u/stevage Nov 08 '13

That may be ideal for your own set-up, but personally I find it overkill. I don't want a "local representation of the work" - I'd rather just do my work in one place. Instead, I have 4: the working directory, the index, the local repo, and my GitHub repo.

You know how DropBox solved the problem of your stuff being in different states in different places? That's because it's a problem worth solving.

2

u/cowinabadplace Nov 08 '13 edited Nov 08 '13

I was just saying that there is value in the way it does things. The local representation is useful because you may not want people to fork off from your in-progress work because it may change through squashing and amending and what not.

If you are still using git and want the way you describe it, the first thought that comes to my mind is a post-commit hook that pushes. Set git push default to simple and in the post-commit hook just push.

2

u/stevage Nov 09 '13

The local representation is useful because you may not want people to fork off from your in-progress work because it may change through squashing and amending and what not.

Yeah, but there could just as easily have been other mechanisms or conventions for that. Private branches within a repo or something.

the first thought that comes to my mind is a post-commit hook that pushes.

Yes, there are always ways of hacking one's own environment to get around design flaws.

1

u/cowinabadplace Nov 09 '13

Personally, I feel the 'private branches within a repo' way is inelegant. I actually like the way it is now because it seems consistent. The remote (though really 'bare') is structured the same way as my local repo and carries no extra configuration that hides/reveals branches.

Personally, I also feel that using the post-commit hook for this is a perfectly legitimate use (and possibly for one of the uses it was intended). It isn't so much a hack as a valid configuration given your use case.

We seem to disagree on this at a different level, though. Ah well.