Q: Undo git reset --soft ~HEAD I was going to add some changes using git.
Instead of committing my changes, I managed to write git reset --soft ~HEAD.
How do I undo this command and get my changes back?

A: I managed to fix this myself.
Found this command and it worked:
$ git reset HEAD@{1} 

