I've done some searching but either I don't understand exactly how this works or I'm not finding what I need.
I have a production server and I have my local development box.
There is a directory that has been tracked by the git repo until now, which I no longer want to track. I also want to remove those files from the repo as they will not be tracked and simply make the git repo larger than it needs to be.
However, my understading is that if I to a git rm --cached
locally and change my .gitignore file, it will delete the files on the remote server when I pull down the updated repo, which I do not want. I want the files to remain on production, just not tracked any more and not in the repo.
I would think someone has had to do this before and I'm probably missing something obvious.
I hope that makes sense. Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…