I have a tmp directory in my git repo I'd like to still exist, but be ignored. I added it to .gitignore
, but git status
still tells me about changes to files in that directory. I tried git rm -r --cached
, but that removes it from the remote repo. How can I stop tracking changes to this directory, but still allow it to exist? I also need to do this for 1 file, but changes to that also show up in git status
after .gitignore
ing them. What should I do?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…