A colossal Dreamer: GR鐵塔-天生我材

remove files from tracking git 본문

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

 

ref: https://stackoverflow.com/questions/1274057/how-do-i-make-git-forget-about-a-file-that-was-tracked-but-is-now-in-gitignore

 

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

 

'Development > 아이폰' 카테고리의 다른 글

macOS, show hidden files in Finder UI  (0) 2022.09.07
swift playground with cocoapods  (0) 2022.09.07
Swift: getting Date Components  (0) 2022.07.18
Swift PropertyWrapper  (0) 2022.07.11
WWDC2022 Platforms State of Unions 복습 정리  (0) 2022.06.23