Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update content/github/collaborating-with-issues-and-pull-requests/cre…
…ating-and-deleting-branches-within-your-repository.md

Co-authored-by: Felicity Chapman <[email protected]>
  • Loading branch information
Aakarsh-B and felicitymay authored Dec 2, 2020
commit 917b188b3932e8f23b373d6c4e899c57a0b2f3a9
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ versions:

{% data reusables.pull_requests.automatically-delete-branches %}

#### If the branch you want to delete is the repository's default branch, you must choose a new default branch before deleting the branch. For more information, see "[Changing the default branch](/github/administering-a-repository/changing-the-default-branch)."
{% note %}

**Note:** If the branch you want to delete is the repository's default branch, you must choose a new default branch before deleting the branch. For more information, see "[Changing the default branch](/github/administering-a-repository/changing-the-default-branch)."

{% endnote %}

If the branch you want to delete is associated with an open pull request, you must merge or close the pull request before deleting the branch. For more information, see "[Merging a pull request](/github/collaborating-with-issues-and-pull-requests/merging-a-pull-request)" or "[Closing a pull request](/github/collaborating-with-issues-and-pull-requests/closing-a-pull-request)."

Expand Down