• git 删除远程master 分支



    ➜  fekit-extension-yo git:(dev) 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:
    remote: error: To squelch this message, you can set it to 'refuse'.
    remote: error: refusing to delete the current branch: refs/heads/master
    To git@gitlab.corp.qunar.com:fed/yobuilder.git
     ! [remote rejected] master (deletion of the current branch prohibited)
    error: failed to push some refs to 'git@gitlab.corp.qunar.com:fed/yobuilder.git'   

     github gitlab setting 当前分支不能为要删除分支

    设置后重新执行 git push origin :master  
  • 相关阅读:
    原始字符串
    .Net Core 常见错误解决记录
    P1010 幂次方 P1022 计算器的改良
    P1036 选数
    广度优先遍历
    P4327 彼得潘框架
    链表
    标准库与标准模板库
    信息学竞赛打表犯规吗?
    对拍程序
  • 原文地址:https://www.cnblogs.com/yingwo/p/4522463.html
Copyright © 2020-2023  润新知