我正在尝试将文件上传到 github,但当我键入“git add”时,我一直收到此错误。或者 命令行中的“git commit -m 'message'”(在 mac os x 10.9 上)。我不确定这是什么意思
'atal:引用格式无效:'refs/Icon
最佳答案
我在使用 Google 云端硬盘时遇到了同样的问题。我只是删除了项目文件夹中的所有“图标”文件,然后 git 开始工作。
find . -name "Icon*" -type f -delete
如果你有一个名为“图标”的文件,使用下面的命令将保留你自己的“图标”文件。
find . -type f \( -name "Icon*" ! -name "*.*" \) -delete
关于macos - 'atal : Reference has invalid format: 'refs/Icon,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24186256/