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

前端 未结 18 1442
太阳男子
太阳男子 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

    I was having this issue as well, and it was driving me crazy. I had something like feature/name but git branch -a showed me FEATURE/name. Renaming the branch, deleting and recreating it, nothing worked. What finally fixed it:

    Go into .git/refs/heads

    You'll see a FEATURE folder. Rename it to feature.

提交回复
热议问题