5 ms·
Recovering commit after Git reset --hard
- personjerry 9y agotl;dr git caches your state after every command, use git reflog to try it. Why is this front page with 3 votes? This is weird and I’ve flagged it.
- mparlane 9y agoExcept for git stashes :(
- jwilk 9y agoFrom the HN guidelines: Please don't complain that a submission is inappropriate. If a story is spam or off-topic, flag it. […] If you flag something, please don't also comment that you did.
- personjerry 9y agoTo clarify, I was asking in case I missed something, not complaining in a passive-aggressive way.
- striking 9y agoI prefer http://ohshitgit.com http://ohshitgit.com
- realslimshanky 9y agocool!
- jwilk 9y ago(Syntax highlighting for the git patch is broken.)