步骤:

(以删除.idea文件夹为例)

git rm -r --cached .idea  #--cached不会把本地的.idea删除
git commit -m 'delete .idea dir'
git push -u origin master

通过删除缓存,再提交,而不会删除本地文件。

相关文章:

  • 2022-12-23
  • 2022-01-07
  • 2021-12-25
  • 2021-11-23
  • 2021-11-22
  • 2021-05-21
猜你喜欢
  • 2021-10-23
  • 2021-12-17
  • 2021-11-20
  • 2021-05-09
相关资源
相似解决方案