It is as simple as
Website link : https://stackoverflow.com/questions/46273032/is-there-a-way-to-remove-all-ignored-files-from-a-git-repo/46273201
git clean -dfX
git-clean - Remove untracked files from the working tree-d
for removing directories-f
remove forcefully-n
Don’t actually remove anything, just show what would be done.-X
Remove only files ignored by Git. This may be useful to rebuild everything from scratch, but keep manually created files.
Comments
Post a Comment