git rm -r --cached .
git add .
git commit -m 'removed xxx from repository'
参考 https://stackoverflow.com/questions/21616463/gitignore-file-in-sourcetree-not-working
本文介绍如何使用Git命令从版本库中移除指定文件,包括使用'git rm --cached'来仅从版本库中删除文件但保留本地文件,以及如何提交更改。参考了Stack Overflow上关于.gitignore文件在源代码树中不生效的问题讨论。
git rm -r --cached .
git add .
git commit -m 'removed xxx from repository'
参考 https://stackoverflow.com/questions/21616463/gitignore-file-in-sourcetree-not-working
2340
1335
1419

被折叠的 条评论
为什么被折叠?