Doesn’t actually clean yet, just tells you what would be cleaned:
For real, delete any files not committed to your repository
To remove directories, run
To remove ignored files, run
To remove ignored and non-ignored files, run
Achieving Developer Excellence with Automated Testing
Doesn’t actually clean yet, just tells you what would be cleaned:
git clean -n
For real, delete any files not committed to your repository
git clean -f
To remove directories, run
git clean -fd
To remove ignored files, run
git clean -fX
To remove ignored and non-ignored files, run
git clean -fx