search

Home  >  Q&A  >  body text

github - How to delete the branch of the remote warehouse in git

I created a branch locally without merging it, and pushed the branch to github

Then I deleted the branch locally, so how do I delete the branch on the remote warehouse?

给我你的怀抱给我你的怀抱2709 days ago855

reply all(2)I'll reply

  • 某草草

    某草草2017-06-14 10:56:48

    git push origin :deleted_branch

    origin is your remote name, deleted_branch is the branch you deleted

    reply
    0
  • 阿神

    阿神2017-06-14 10:56:48

    You can delete branches directly on the github website

    reply
    0
  • Cancelreply