How to delete a git branch of a repo I own?

Asked by Ting Ping on 2020-07-14

How can I delete a git branch for a repository I own? I found how to delete the whole repository, but no way to delete a single branch. I'm sorry if this is a FAQ, I did read the documentation but really couldn't find how.

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Last query:
Last reply:
Colin Watson (cjwatson) said : #1

You can do this with the git client. For instance, if you have a remote called 'origin' set up pointing to your repository, then 'git push --delete origin branch-name' will do the job. See 'man git push' for more details.

Can you help with this problem?

Provide an answer of your own, or ask Ting Ping for more information if necessary.

To post a message you must log in.