how to get rid of update in terminal since last pull github code example Example: git cancel last commit git reset --soft HEAD~1