How to remove remote origin/refs/heads/master

前端 未结 3 1130
误落风尘
误落风尘 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条回答
  •  Happy的楠姐
    2020-12-24 14:44

    It's

    git branch -r -d origin/ref/heads/master
    

    instead of

    git branch -r -d origin/refs/heads/master 
    

    in the code part to delete branch. There is difference in ref word in the code.

提交回复
热议问题