GIT Clean repo
Normally in a repo, you will have some built files and perhaps you added some new files etc. If you want to clean your clone you can run git clean
. It will remove files based on the switch used. If you want to recursively remove all ignored files you can use:
git clean -dfx
-d will remove directories recursively -f will remove untracked files -x will remove ignored and non-ignored files
-X would remove only ignored files -q will not output anything - quiet -n will not remove anything but just showed what would it be - dry run
And more ...
- Previous: GIT Garbage cleaner
- Next: GIT Rebase