when someone abandons you,it is him that gets loss because he lost someone who truly loves him but you just lost one who doesn’t love you.
搭建 Git 服务器
1 | $ mkdir test.git # 创建 Git 资源的存储目录 test.git |
可是,这时候服务器 git 仓库中初始化的默认分支是 master,我想改成其他的要怎么操作?
当我在本地直接尝试删除其他分支一样去删除 origin/master 分支时,会报错,即便是我本地切换到其他分支,依然会报下面的错
1 | remote: error: By default, deleting the current branch is denied, because the next |
好在这是我自己的 git 服务器,我可以直接访问
1 | $ cd test_git |
在这之后,就可以在本地像删除一个普通分支一样去删除服务器的 master 了
be slow to promise and quick to perform.