clear local changes in git

C
git checkout .

Source

Also in C: