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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -