V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Coding.NET 轻量级社交
开源项目广场
使用帮助
意见反馈
shell92
V2EX  ›  Coding

coding 上怎么删除远程分支?

  •  
  •   shell92 · Oct 11, 2015 · 5002 views
    This topic created in 3854 days ago, the information mentioned may be changed or developed.

    我执行 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 replies    2015-10-11 18:00:02 +08:00
    shell92
        1
    shell92  
    OP
       Oct 11, 2015
    我没找到在哪里配置 receive.denyDeleteCurrent 这个属性。。。。。
    bingwenshi
        2
    bingwenshi  
       Oct 11, 2015
    这个应该是 server 上设置的

    远端的 master 分支不能删,删了 clone 的时候就没有默认分支了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1554 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 16:31 · PVG 00:31 · LAX 09:31 · JFK 12:31
    ♥ Do have faith in what you're doing.