Development/아이폰
remove files from tracking git
江多林
2022. 9. 7. 15:21
first of all; add filename or pattern to ".gitignore" file
now remove from git tracking
git rm -r --cached <folder>
git rm --cached <file>
And
commit this
How do I make Git forget about a file that was tracked, but is now in .gitignore?
I put a file that was previously being tracked by Git onto the .gitignore list. However, the file still shows up in git status after it is edited. How do I force Git to completely forget the file?
stackoverflow.com