我正在使用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`
我怎样才能解决这个问题?谢谢。