I cloned a git repo and then started playing around in its master branch. After a while, I want to ignore the changes I just made (without committing them), and switch to a diff
If you have unstaged file, try:
git checkout -- .
Or
git checkout -- filename