How to discard changes made in the working directory?


#1

What is the git command for this?


#2

Try this.
git checkout HEAD < filename >
e.g. git checkout HEAD example.txt