Removing non-repository files with git? -
i'm writing autotools code , in process of development, tons of files generated.
is there anyway tell git remove files directory not part of repository?
thanks!
you can use git-clean. command remove untracked files/directories. default, print have removed, without removing them.
given -f
flag remove files, , -d
flag remove empty directories :
git clean -df
also removing ignored files :
git clean -dfx
Comments
Post a Comment