V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Coding.NET 轻量级社交
开源项目广场
使用帮助
意见反馈
shell92
V2EX  ›  Coding

coding 上怎么删除远程分支?

  •  
  •   shell92 · 2015-10-11 16:39:23 +08:00 · 4153 次点击
    这是一个创建于 3118 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我执行 git push origin :master
    报错
    remote: error: By default, deleting the current branch is denied, because the next
    remote: error: 'git clone' won't result in any file checked out, causing confusion.
    remote: error:
    remote: error: You can set 'receive.denyDeleteCurrent' configuration variable to
    remote: error: 'warn' or 'ignore' in the remote repository to allow deleting the
    remote: error: current branch, with or without a warning message.
    remote: error:

    2 条回复    2015-10-11 18:00:02 +08:00
    shell92
        1
    shell92  
    OP
       2015-10-11 16:39:46 +08:00
    我没找到在哪里配置 receive.denyDeleteCurrent 这个属性。。。。。
    bingwenshi
        2
    bingwenshi  
       2015-10-11 18:00:02 +08:00
    这个应该是 server 上设置的

    远端的 master 分支不能删,删了 clone 的时候就没有默认分支了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1491 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:56 · PVG 07:56 · LAX 16:56 · JFK 19:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.