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

前端 未结 8 1612
时光说笑
时光说笑 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

    I was able to delete all the conflicted files from my .git folder, but I continued to get errors about files that no longer existed.

    The fix for me was opening up .git/refs/packed_refs and deleting lines that contained the text "conflicted".

提交回复
热议问题