macos - 'atal : Reference has invalid format: 'refs/Icon

标签 macos git github command-line-interface

我正在尝试将文件上传到 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/

相关文章:

linux - git push 两步验证失败的解决方法(linux)

java - 我可以在没有 ssh 的情况下使用 git 或其他版本控制系统在 http 托管帐户上私有(private)存储库吗?

django - 在Heroku上安装和部署Django应用

Git:在 merge 分支上工作,之后未 merge

java - 如何解决此问题 "Unable to resolve dependency for ' :app@debug/compileClasspath': Could not resolve com. github.Goodiebag :PinView:v1. 3。”

macos - 如何将可变数量的 MTLTextures 传递给片段着色器?

excel - 无法使用 VBA 在 Excel 中插入图片

macos - 在 Mac OSX 上安装 flite 时出错

ios - 在 OS X El Capitan 上通过 cocoapods 安装 pod 时出错

android - Android Studio 上的 GitHub