Re:Git koans
by aidenn0 on Monday April 08, 2013 @12:21PM
(#5512647)
More people use git; I'm becoming increasingly convinced that few of them actually know git.
[ Parent
| on HN ]
Re:Git koans
by the_mitsuhiko on Monday April 08, 2013 @12:25PM
(#5512673)
> More people use git; I'm becoming increasingly convinced that few of them actually know git.
And yet I have noticed that people find merging and branching much easier than in mercurial. Few people understand the implications of named branches in hg.
> And yet I have noticed that people find merging and branching much easier than in mercurial.
That's the first time I've heard this opinion - do you know what kind of complaints people have?
In my experience, it's much easier to say 'When you start work on an issue, start a branch called 'issue-XXX', then once you're done we will merge it into the default branch'. I've never seen much confusion in response to that.
Yeah, named branches in hg are just weird.
Not as weird as hijacking the term "branch" to mean a symlink to a ref that is not part of the history. Then again why make it easier by naming it to something more intuitive, like say, "bookmark".
Because a bookmark is usually immutable. If I bookmark "http://news.ycombinator.com has "Hacker News" it will be same URL forever.
In contrast, git branches symlink to a different ref, whenever you commit to it.
A git tag could be called bookmark intuitively.