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

3

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

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.