相关疑难解决方法(0)

在Git中删除损坏的名称(dropbox冲突的副本)

我将我的回购保存在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完好无损

git dropbox

17
推荐指数
1
解决办法
6620
查看次数

如何在git中修复"警告:忽略名称破坏的引用"?

我正在研究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?本地目录中有一个文件.

对于所有触发快乐的人即将点击"重复":我已经搜索了其他答案,我发现了这个,但我不确定它与我的情况有什么关系.可能是潜在的原因是相同的,但是如果能解释如何解决这个问题,我和其他人会受益.

git

8
推荐指数
1
解决办法
8715
查看次数

标签 统计

git ×2

dropbox ×1