Git Checks git reset - Reset current HEAD to the specified state. you can lose your changes if the changes are not committed. git rm - Remove files matching pathspec from the index.