Undo Changes in Git Undoing Local Changes That Have Not Been Committed $ git status # List affected files $ git checkout filename.html # File has now been reverted to previous commit