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
You can ignore all uncommitted changes.
git reset --hard HEAD