how to go back to latest head after git reset --soft head code example
Example 1: git reset soft head
$ git reset --soft HEAD~1
Example 2: git soft reset head
git reset --soft HEAD^
//resets head by 1
$ git reset --soft HEAD~1
git reset --soft HEAD^
//resets head by 1