How to revert git repo to clean state

Including symlinks, etc.

git reset –hard
git clean -fxd

for submodules (use git reset and clean as THE_COMMAND):
git submodule foreach git THE_COMMAND


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *