GitClean
OriginalMarch 1, 2019Less than 1 minute
Conclusion
Delete files not added to the staging area:
#Show files and directories to be deleted
git clean -n
#Delete files and directories
git clean -df
#Delete File
git clean -f
git rm <file>
Delete files not added to the staging area:
#Show files and directories to be deleted
git clean -n
#Delete files and directories
git clean -df
#Delete File
git clean -f
git rm <file>