Archive for April, 2009

Apr 18 2009

Recovering From A –hard Reset In Git

Published by tim under coding

I was switching between git repositories the other day, and managed to do a “git reset –hard HEAD^” in the wrong repository. Which wasn’t bad, since I had most of the files already open in Emacs… but then Emacs calmly told me that it was re-reading the files from disk.
But, git had everything still [...]

No responses yet

Next »