以下是本地和远程的分支结构:
$ alias graph="git log --all --decorate --graph --oneline"
$ graph
* 0d41ab3 (origin/module-4-Unit-Integ-using-Docker, module-4-Unit-Integ-using-Docker) new version
* b43ea38 new version
* a2fc98c new version
* b333774 new version
* 3e1640b new version
* 643984c new version
* 91122f1 (HEAD -> module-3, origin/module-3, origin/master) new version
* f7de930 new version
* 8a1eba3 new version
* a6c5f5d new version
* b910339 new version为了严格遵循命名约定,我想删除master分支(远程),并遵循这个操作步骤。
帮不上忙。
如何删除master分支?远程
发布于 2019-10-16 13:38:39
这是因为github正在查看主分支,以便在浏览该存储库时提供web内容。因此,我们首先必须让github查看占位符分支,然后删除主。
首先向上推占位符分支:
git checkout placeholder # if not on placeholder already
git push origin placeholder然后:
git push origin :master正如您在下面链接的文章中所指出的,您需要指示github不要监视您的主分支。
详细信息在本链接中
https://stackoverflow.com/questions/58414398
复制相似问题