使用 PHPStorm,我试图忽略workspace.xml每次尝试进行 git 提交时弹出的内容。
workspace.xml
我的.gitignore样子:
.gitignore
/.idea/ .idea/workspace.xml
因为在某个时间点文件已提交,我还执行了:
git rm --cached .idea/workspace.xml然后提交删除,推送到一个裸仓库。
git rm --cached .idea/workspace.xml
但是当我在项目中进行更改时,该文件会不断弹出。
关于我所缺少的任何想法?
我不得不:
命令
git rm -f .idea/workspace.xml git remote | xargs -L1 git push --all
其他提交者应该运行
git pull