zhouu 发表于 2018-9-17 09:17:24

提交到git时忽略.project等文件

  首先cd命令切换到仓库下,使用git rm -r --cache .project .pydevproject .settings,删除这些.project .pydevproject .settings文件
  通过 man git-rm 得知:--cache 功能如下:
  --cached
  Use this option to unstage and remove paths only from the index. Working tree files, whether modified or
  not, will be left alone.
  通过 --cached 参数,只删除已经添加到index的文件,并不删除本地文件。

页: [1]
查看完整版本: 提交到git时忽略.project等文件