这和
.gitignore
这意味着当其他人在远程存储库中修改同一文件时,您有未提交的更改。
提交更改,然后执行拉取
# add your files to the staging area
git add . (or any other file that you need)
git commit
# now pull
git pull
或者如果你不想承诺:
git stash
# now pull
git pull
我没有提交.idea目录中的文件,因为我想将其推送到远程分支,并且禁止将这些文件推送到远程分支。
或者如果你想把它们从历史中完全删除
BFG -
https://rtyley.github.io/bfg-repo-cleaner/
从现在起使用此忽略文件:
https://www.gitignore.io/api/intellij