Reset HEAD to a specific commit$ git reset --mixed [hash] # move changes to unstaged area $ git reset --hard [hash] # gets rid of changes git