2

Is there any way to delete the published branch without creating a pull request and merging it into the default branch on the GitHub console.

One way I know is to create a pull request and then close it, then I am able to delete that branch.

Edit :- I could not find exisiting question on SO with below conditions -

  1. How to delete branch without raising pull request.
  2. How to do it on GitHub website.

Thanks.

1

1 Answer 1

5

Just found a solution for this.

Click on the branches tab shown below -

enter image description here

Delete your published banch from the list -

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.