If you already commited changes, then:
git reset (--hard) HEAD~1
If not then:
git reset
git ls-files -d -z | xargs -0 git checkout --
If you already commited changes, then:
git reset (--hard) HEAD~1
If not then:
git reset
git ls-files -d -z | xargs -0 git checkout --