News for hackers. Stuff that matters.
Re:The Real Difference Between Git and Mercurial by gizzlon on Friday January 20, 2012 @05:01AM (#3488959)
another negative sentence: "you can just point the branch pointer back at the previous commit with git reset --hard HEAD@{1}"

just? Wtf is HEAD@{1} ?

That might be simple, but as usual, only if you know a lot about git.

As a casual git user this annoys me; Even when doing basic stuff I often have to read a long blog-post about how git works internally. I can't remember having this problem when I was a casual Mercurial user.

Re:The Real Difference Between Git and Mercurial by beaumartinez on Friday January 20, 2012 @07:19AM (#3489225)
Run git reflog—HEAD@{1} is (at least as I understand it) "the state HEAD was at 1 commit ago"—including things such as rebasing and reverting.