How to return the working state of the directory to what it would be from a new clone of the repository (obviously, I could clone my repository, but it seems a little wild.)
With git, I would do:
git clean -xdn (dry-run, to see what I'm about to destroy)
git clean -xdf (force, to actually do it)
And I guess there is probably a subtle other equivalent, but I can't find it.
source
share