我在一个项目上工作,在运行 git add 后,我注意到一个本不应该存在的目录。要删除的目录是.idea/。运行后
git config core.excludesfile .idea/
我收到一条消息
fatal: cannot use .idea/ as an exclude file
现在我的控制台已经卡住,除 dit diff 之外的任何 git 相关命令都会抛出相同的错误。我怎样才能让我的代表正常运作?先感谢您。
最佳答案
以下解决方案帮助了我
git config --global core.excludesfile ~/.gitignore
关于GIT - 致命的 : cannot use . 想法/作为排除文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50004845/