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.

Derrick
  • 3,669
  • 5
  • 35
  • 50

1 Answers1

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

Dharman
  • 30,962
  • 25
  • 85
  • 135
Derrick
  • 3,669
  • 5
  • 35
  • 50