我正在使用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`
我该如何修复这个问题?谢谢。
find . -type f -name "* conflicted copy*" -delete
- Soyoes