如果已经添加了.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"

 

相关文章:

  • 2022-12-23
  • 2021-07-14
  • 2021-10-17
  • 2021-12-05
  • 2021-12-18
  • 2021-11-19
  • 2021-11-21
猜你喜欢
  • 2022-01-30
  • 2021-12-02
  • 2022-01-26
  • 2021-12-21
  • 2021-08-08
  • 2021-12-13
相关资源
相似解决方案