How to automatically delete branch when PR is merged in Github

Theodore Gonzalez
WanderCodes
Published in
1 min readAug 26, 2020

--

Problem:

When a PR is merged, you want to delete the branch automatically instead of clicking “Delete branch”.

Solution:

Go to Settings -> Options and look for “Automatically delete head branches”

--

--