title: How to revert an unnecessary "git reset HEAD~1"
body: <p>After running <code>git reset HEAD~1</code>, I noticed that actually there was nothing else to do and the commit was fine. Is there a way to revert this command?</p>