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

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
2020-07-14
Last reply:
2020-07-14
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.