Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git remove all files in gitignore

git ls-files -i -z --exclude-from=.gitignore | xargs -0 git rm --cached
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #remove #files #gitignore
ADD COMMENT
Topic
Name
2+1 =