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

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

    I faced the same issue which was due to going to branch with wrong casing. git let me switch to branch with incorrect casing ie feature/Name instead of feature/name. Found an easier solution than listed above just:

    • commit your changes to 'feature/Name'
    • git checkout master (or develop)
    • git checkout feature/name < with correct casing
    • git push

提交回复
热议问题