push to remote repo gives the error - there are still refs under

前端 未结 1 1545
暖寄归人
暖寄归人 2021-01-02 17:54

I am trying to push code to a remote repo -

git push uat release/1.1:release
Counting objects: 4047, done.
Delta compression using up to 2 threads.
Compressi         


        
相关标签:
1条回答
  • 2021-01-02 18:17

    I suspect you have other branches named release/<something> on your uat remote. The push command you are running is trying to convert a local branch release/1.1 into a remote branch release, but the remote refuses to remove release/<something> because that would lose information. Try git push uat release/1.1:newrelease or something similar to avoid the conflict of trying to have a single branch named the same thing as a "subdirectory" containing other branches (it's not truly a subdirectory, but the way git works internally, it is sometimes stored as an actual subdirectory).

    git remote show uat or git branch -r will show you what branches your uat remote has.

    0 讨论(0)
提交回复
热议问题