我正在使用 Dropbox
来同步一个 git
存储库,但是现在当我尝试和 push
同步时,我得到了一个错误:
fatal: Reference has invalid format: 'refs/heads/master (MacBook-Pro's conflicted copy 2012-10-07)'
因此,Dropbox 似乎检测到了一个冲突并创建了一个副本。好的,没问题,所以我删除了冲突文件。尽管如此,还是得到了上面的 git 错误。
$ git checkout master
M index.html
Already on 'master'
$ git add .
$ git commit -a -m "Cleanup repo"
[master ff6f817] Cleanup repo
1 file changed, 5 insertions(+), 5 deletions(-)
$ git push
fatal: Reference has invalid format: 'refs/heads/master (MacBook-Pro's conflicted copy 2012-10-07)'
The remote end hung up unexpectedly`
我该怎么办? 谢谢。