Skip to content

Git: When to Close (Delete) Branch after PR

When should I close (i.e. delete) the branch after a successful pull request? Rule of thumb: always. (There are exceptions of course.)

What if I need to recover the deleted work? You'll just

git checkout -b <branch> <sha>