Can't push to remote branch, cannot be resolved to branch

前端 未结 18 1419
太阳男子
太阳男子 2020-12-12 19:58

I migrated my repos from Bitbucket or Github. I don\'t think this matters but it\'s the only thing different... For a little while I had two remotes set up:



        
18条回答
  •  眼角桃花
    2020-12-12 20:28

    for me I was naming branch as

    Rel4.6/bug/Some-short-description

    all I had to do is when using

    git push origin Relx.x/bug/Some-short-description

    to write

    git push origin relx.x/bug/Some-short-description

    as I used to create branches using small letter r in rel.

    so, what caused this issue?

    when I listed .git/refs/heads content I found

    drwxr-xr-x  4 eslam_khoga  staff   128B Sep 22 20:22 relx.x
    

    but no Relx.x!

    and inside it bug and inside bug my branch's name.

    So, git try to create a dir with same name but different case letters

    but system is not case sensitive.

    That's what caused this issue!

提交回复
热议问题