search

Home  >  Q&A  >  body text

Delete a branch on github from the command line

  我这里看到github上明明有三个分支,我用命令行删除new1和new2删除不了 
  在命令行里又显示删除了是怎么回事,git和github上的账号都是没有问题的,命令行也是指定了的
  

怪我咯怪我咯2793 days ago689

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:25:22

    To delete remote branches please use:

    git push origin :[branch_name]

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-02 09:25:22

    Refer to Git common operations-branch management

    reply
    0
  • 迷茫

    迷茫2017-05-02 09:25:22

    • git push origin -d branch_name

    reply
    0
  • Cancelreply