Question : reinit gitignore
Answered by : attractive-alligator-76oe3ocfytea
# rm all files
git rm -r --cached .
# add all files as per new .gitignore
git add .
# now, commit for new .gitignore to apply
git commit -m ".gitignore is now working"
Source : https://stackoverflow.com/questions/7075923/resync-git-repo-with-new-gitignore-file | Last Update : Thu, 06 Aug 20
Question : git re init git ignore
Answered by : jittery-jaguar-4efu2r4ev1k1
git rm -r --cached .
Source : http://www.codeblocq.com/2016/01/Untrack-files-already-added-to-git-repository-based-on-gitignore/ | Last Update : Thu, 28 May 20