Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git remove all tracked files after add in git ignoore

First:

git rm -r --cached .
git add .

Then:

git commit -am "Remove ignored files"
#---------------------
Or as a one-liner:
git rm -r --cached . && git add . && git commit -am "Remove ignored files"

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #remove #tracked #files #add #git #ignoore
ADD COMMENT
Topic
Name
5+7 =