Git fatal: Reference has invalid format: 'refs/heads/master

前端 未结 8 1606
时光说笑
时光说笑 2021-01-29 18:15

I am using Dropbox to sync a git repository, but now when I try and push I am getting an error:

fatal: Reference has inval         


        
8条回答
  •  遥遥无期
    2021-01-29 18:44

    This also happen to our team when my colleague push his changes and shutdown the PC before Dropbox get updated.

    I solved it so simply.

    Just deleted the conflicted copy. (XXXX's conflicted copy yyyy-mm-dd)

    And pull it normally.

    Note that my colleague had the changes before messed up. And he push his changes again. This time no shutdown. :)

提交回复
热议问题