1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Be clearer about when instructions to collaborators about a renamed branch are displayed (#45014)

This commit is contained in:
Andrew S
2023-10-26 00:19:29 +11:00
committed by GitHub
parent ba811ecd76
commit 63b49d4e27

View File

@@ -19,7 +19,7 @@ You can rename a branch in a repository on {% data variables.location.product_lo
When you rename a branch on {% data variables.location.product_location %}, any URLs that contain the old branch name are automatically redirected to the equivalent URL for the renamed branch. Branch protection policies are also updated, as well as the base branch for open pull requests (including those for forks) and draft releases. If the renamed branch is the head branch of an open pull request, this pull request is closed.
After the rename is complete, {% data variables.product.prodname_dotcom %} provides instructions on the repository's home page directing contributors to update their local Git environments.
If a repository's default branch is renamed, {% data variables.product.prodname_dotcom %} provides instructions on the repository's home page directing contributors to update their local Git environments.
Although file URLs are automatically redirected, raw file URLs are not redirected. Also, {% data variables.product.prodname_dotcom %} does not perform any redirects if users perform a `git pull` for the previous branch name.