title | intro | versions | allowTitleToDifferFromFilename | topics | shortTitle | redirect_from | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creating a branch to work on an issue |
You can create a branch to work on an issue directly from the issue page and get started right away. |
|
true |
|
Create branch for issue |
|
Note
The ability to create a branch for an issue is currently in {% data variables.release-phases.public_preview %} and subject to change.
Branches connected to an issue are shown under the "Development" section in the sidebar of an issue. When you create a pull request for one of these branches, it is automatically linked to the issue. The connection with that branch is removed and only the pull request is shown in the "Development" section. For more information, see AUTOTITLE.
Anyone with write permission to a repository can create a branch for an issue. You can link multiple branches for an issue.
By default, the new branch is created in the current repository, and from the default branch.
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-issues %}
-
In the list of issues, click the issue that you would like to create a branch for.
-
In the right sidebar under "Development", click Create a branch. If the issue already has a linked branch or pull request, select {% octicon "gear" aria-label="Development" %} and click Create a branch.
-
Optionally, in the "Branch name" field, type a branch name.
-
Optionally, select the Repository destination dropdown menu, then choose a repository.
-
Under "What's next", select whether you want to work on the branch locally or to open the branch in {% data variables.product.prodname_desktop %}.
-
Click Create branch.