git-cheatsheet icon indicating copy to clipboard operation
git-cheatsheet copied to clipboard

Making git "forget" about all files that are already tracked but are in .gitignored

Open madc opened this issue 10 years ago • 5 comments

http://stackoverflow.com/a/19095988/709769

Remove all files from repo:

git rm -r --cached . 

Re-add all files:

git add .

then

git commit -am "Remove ignored files"

madc avatar Jan 08 '14 12:01 madc