Switch current branch in git bare repository

后端 未结 1 1488
我寻月下人不归
我寻月下人不归 2021-01-30 10:20

I actually want to remove a branch in the bare repository i am working with, but this task hits a dead end because I cannot switch away from the master repository without a \'wo

1条回答
  •  温柔的废话
    2021-01-30 11:22

    Try this instead of git checkout:

    git symbolic-ref HEAD refs/heads/develop
    

    Then you should be able to delete master.

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