how to see the last commit of branch code example Example: how do i get the last commit $ git reset --soft HEAD~1