.gitignore清缓存


如果已经添加了.gitignore,例如:

/build
.idea/
build/
.gradle/
app/app.iml
app/build.gradle
gradle/wrapper/gradle-wrapper.properties
local.properties

仍然可以在git status中看到修改,则需要清一下缓存:

git rm -r --cached
git add .
git commit -m "update .gitignore"

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM