Friday, May 9, 2014

Removing untracked files in a Git working copy

Use ...

git clean -f -n

... to see which files Git would remove if you actually ran the command.

Then use ...

git clean -f

... to permanently remove the files.

No comments: