git reset --hard head
git clean -df you can also use this to see what would have been done git clean -dn
* undoing