克隆存储库时,Git冲突复制错误 [英] Git conflicted copy error while cloning a repository

查看:114
本文介绍了克隆存储库时,Git冲突复制错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Dropbox作为git存储库。

现在由于同步中存在一些问题,git中存在一些冲突副本。我如何消除这种冲突?
由于这种冲突,我无法复制该存储库的内容。



克隆存储库时遇到的错误是: -



Git: - 致命:引用的格式无效:'refs / heads / debugging(xyz conflictedcopy date)'

解决方案

最终为我工作的解决方案是简单地删除引用引用的分支,例如

  git branch -D调试(xyz conflictedcopy date)

我有很多这样的引用,所以这是冲洗和重复..

I am using dropbox as a git repository.

Now due to some issue in the syncing, there is some conflicted copy present in the git. How do I remove this conflict ? Due to this conflict I am unable to clone the contents of that repository.

The error I am getting while cloning the repository is:-

Git :- fatal: Reference has invalid format: 'refs/heads/debugging (xyz conflictedcopy date) '

解决方案

The solution that eventually worked for me was to simply delete the branch that the reference refers to, e.g.

git branch -D "debugging (xyz conflictedcopy date)"

I had many such references, so it was "rinse and repeat"..

这篇关于克隆存储库时,Git冲突复制错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆