How to remove remote origin/refs/heads/master

前端 未结 3 1127
误落风尘
误落风尘 2020-12-24 14:05

Don\'t ask me how but I managed to get accidentally the following remote branches in a git repository:

$ git branch -r
  origin/HEAD -> origin/master
  or         


        
3条回答
  •  执笔经年
    2020-12-24 14:42

    The solution was to delete the branch refs/heads/refs/heads/master

    git push origin :refs/heads/refs/heads/master
    

提交回复
热议问题