Undoing Things

Unmodifying A Modified File

To revert it back to what it looked like when you last committed, run the following command

$ git checkout -- _FILE_NAME_

Notice that any changes you made to that file are gone — Git will copy another file over it.