how to restore to a previous commit github npm code example Example: revert last commit git reset HEAD~