对于已经处在版本管理中的文件,如果要忽略修改而不被提交到仓库中,需要删除缓存信息
0. update .gitignore
1.git rm -r --cached src/main/resource/application.yml
2.git add .
3.git commit -m "update gitignore"
对于已经处在版本管理中的文件,如果要忽略修改而不被提交到仓库中,需要删除缓存信息
0. update .gitignore
1.git rm -r --cached src/main/resource/application.yml
2.git add .
3.git commit -m "update gitignore"