我将我的回购保存在Dropbox中,有一天(见下面的日期)它疯了.现在,每当我尝试自动填充分支名称时,我都会收到这些警告
warning: ignoring ref with broken name refs/heads/develop (MacBook Pro's conflicted copy 2015-02-28)
warning: ignoring ref with broken name refs/heads/master (MacBook Pro's conflicted copy 2015-02-28)
warning: ignoring ref with broken name refs/remotes/origin/develop (MacBook Pro's conflicted copy 2015-02-28)
warning: ignoring ref with broken name refs/remotes/origin/master (MacBook Pro's conflicted copy 2015-02-28)
warning: ignoring ref with broken name refs/remotes/production/master (MacBook Pro's conflicted copy 2015-02-28)
Run Code Online (Sandbox Code Playgroud)
我该如何修复这些警告?
注意:对于所有重复触发快乐的人 - 这不是重复!我只想删除上面的引用以停止获取警告.git repo完好无损
我正在研究OSX.在特定的仓库中,每当我键入git命令后选项卡自动完成:
$ git diff [clicks tab...]
Run Code Online (Sandbox Code Playgroud)
我现在看到大量的警告:
warning: ignoring ref with broken name refs/Icon
warning: ignoring ref with broken name refs/heads/Icon
warning: ignoring ref with broken name refs/remotes/Icon
warning: ignoring ref with broken name refs/remotes/origin/Icon
warning: ignoring ref with broken name refs/tags/Icon
Run Code Online (Sandbox Code Playgroud)
它真的很烦人,这意味着我看不到我想看到的文件名.
如何删除或禁止这些警告?
我有一个条目Icon?在我的gitignore文件.Icon?本地目录中有一个文件.
对于所有触发快乐的人即将点击"重复":我已经搜索了其他答案,我发现了这个,但我不确定它与我的情况有什么关系.可能是潜在的原因是相同的,但是如果能解释如何解决这个问题,我和其他人会受益.