Rename Branch
Renames a branch in a repository. **Note:** Although the API responds immediately, the branch rename process might take some extra time to complete in the background. You won't be able to push to the old branch name while the rename process is in progress. For more information, see "[Renaming a branch](https://docs.github.com/[email protected]/github/administering-a-repository/renaming-a-branch)". The authenticated user must have push access to the branch. If the branch is the default b...