对于已经处在版本管理中的文件,如果要忽略修改而不被提交到仓库中,需要删除缓存信息
0. update .gitignore
1.git rm -r --cached src/main/resource/application.yml
2.git add .
3.git commit -m "update gitignore"
本文介绍如何在Git中忽略已版本控制文件的修改,避免这些修改被提交到仓库。通过使用特定命令,可以有效管理不需要跟踪的变更,保持仓库的整洁。
对于已经处在版本管理中的文件,如果要忽略修改而不被提交到仓库中,需要删除缓存信息
0. update .gitignore
1.git rm -r --cached src/main/resource/application.yml
2.git add .
3.git commit -m "update gitignore"
7435

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