You can create a branch in different ways on GitHub Enterprise Server.
Note: You can only create a branch in a repository to which you have push access.
- 在 your GitHub Enterprise Server instance 上，导航到存储库的主页。
- Optionally, if you want to create the new branch from a branch other than the default branch of the repository, click Branches then choose another branch.
- Click the branch selector menu.
- Type a unique name for your new branch, then select Create branch.
You can create a branch to work on an issue directly from the issue page and get started right away. For more information, see "Creating a branch to work on an issue".
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."
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" or "Closing a pull request."
在 your GitHub Enterprise Server instance 上，导航到存储库的主页。
Scroll to the branch that you want to delete, then click .
If you try to delete a branch that is associated with at least one open pull request, you must confirm that you intend to close the pull request(s).
如果您在拉取请求合并后删除头部分支，GitHub 会检查将已删除分支指定为基础分支的同一仓库中的任何开放拉取请求。 GitHub 将自动更新任何此类拉取请求，将其基础分支更改为合并的拉取请求的基础分支。 For more information, see "About branches."