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

Asked by Ting Ping

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

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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.