1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Make images accessible in images/help/branch and images/help/branches (#34686)

This commit is contained in:
Laura Coursen
2023-02-14 08:12:05 -06:00
committed by GitHub
parent 67b56ceeae
commit 528f910496
30 changed files with 41 additions and 41 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

View File

@@ -70,7 +70,7 @@ $ svn commit -m 'Added more_awesome topic branch'
You can confirm that the new branch exists in the repository's branch dropdown:
![branch-snapshot](/assets/images/help/branch/svnflow-branch-snapshot.png)
![Screenshot of the repository page. A dropdown menu, labeled with a branch icon and "main", is highlighted with an orange outline.](/assets/images/help/branches/branch-selection-dropdown.png)
You can also confirm the new branch via the command line:

View File

@@ -72,10 +72,11 @@ Here at {% data variables.product.product_name %}, our developers, writers, and
### Create a branch
1. Click the **Code** tab of your `hello-world` repository.
2. Click the drop down at the top of the file list that says **main**.
![Branch menu](/assets/images/help/branch/branch-selection-dropdown.png)
4. Type a branch name, `readme-edits`, into the text box.
5. Click **Create branch: readme-edits from main**.
1. Above the file list, click the dropdown menu that says **main**.
![Screenshot of the repository page. A dropdown menu, labeled with a branch icon and "main", is highlighted with an orange outline.](/assets/images/help/branches/branch-selection-dropdown.png)
1. Type a branch name, `readme-edits`, into the text box.
1. Click **Create branch: readme-edits from main**.
![Branch menu](/assets/images/help/repository/new-branch.png)

View File

@@ -44,13 +44,13 @@ After a pull request has been merged, or closed, you can delete the head branch
{% data reusables.pull_requests.retargeted-on-branch-deletion %}
The following diagrams illustrate this.
Here someone has created a branch called `feature1` from the `main` branch, and you've then created a branch called `feature2` from `feature1`. There are open pull requests for both branches. The arrows indicate the current base branch for each pull request. At this point, `feature1` is the base branch for `feature2`. If the pull request for `feature2` is merged now, the `feature2` branch will be merged into `feature1`.
Here someone has created a branch called `feature1` from the `main` branch, and you've then created a branch called `feature2` from `feature1`. There are open pull requests for both branches. The arrows indicate the current base branch for each pull request. At this point, `feature1` is the base branch for `feature2`. If the pull request for `feature2` is merged now, the `feature2` branch will be merged into `feature1`.
![merge-pull-request-button](/assets/images/help/branches/pr-retargeting-diagram1.png)
![Diagram that shows a feature1 branch with a pull request targeting main, and a feature2 branch with a pull request targeting feature1.](/assets/images/help/branches/pr-retargeting-diagram1.png)
In the next diagram, someone has merged the pull request for `feature1` into the `main` branch, and they have deleted the `feature1` branch. As a result, {% data variables.product.prodname_dotcom %} has automatically retargeted the pull request for `feature2` so that its base branch is now `main`.
![merge-pull-request-button](/assets/images/help/branches/pr-retargeting-diagram2.png)
![Diagram that shows both feature1 and feature2 branches with pull requests targeting main.](/assets/images/help/branches/pr-retargeting-diagram2.png)
Now when you merge the `feature2` pull request, it'll be merged into the `main` branch.

View File

@@ -30,23 +30,25 @@ You can create a branch in different ways on {% data variables.product.product_n
{% data reusables.repositories.navigate-to-repo %}
{% data reusables.repositories.navigate-to-branches %}
1. Click **New branch**.
![Screenshot of branches overview page with new branch button emphasized](/assets/images/help/branches/new-branch-button.png)
2. In the dialog box, enter the branch name and optionally change the branch source.
If the repository is a fork, you also have the option to select the upstream repository as the branch source.
![Screenshot of branch creation modal for a fork with branch source emphasized](/assets/images/help/branches/branch-creation-popup-branch-source.png)
3. Click **Create branch**.
![Screenshot of branch creation modal with create branch button emphasized](/assets/images/help/branches/branch-creation-popup-button.png)
![Screenshot of the "Branches" page for a repository. A green button, labeled "New branch", is highlighted with an orange outline.](/assets/images/help/branches/new-branch-button.png)
1. Under "Branch name", type a name for the branch.
1. Under "Branch source", choose a source for your branch.
- If your repository is a fork, select the repository dropdown menu and click your fork or the upstream repository.
- Select the branch dropdown menu and click a branch.
1. Click **Create branch**.
{% endif %}
### Creating a branch using the branch dropdown
{% data reusables.repositories.navigate-to-repo %}
1. Optionally, if you want to create the new branch from a branch other than the default branch of the repository, click {% octicon "git-branch" aria-label="The branch icon" %} **Branches** then choose another branch.
![Branches link on overview page](/assets/images/help/branches/branches-overview-link.png)
1. Click the branch selector menu.
![branch selector menu](/assets/images/help/branch/branch-selection-dropdown.png)
1. Type a unique name for your new branch, then select **Create branch**.
![branch creation text box](/assets/images/help/branch/branch-creation-text-box.png)
1. Select the branch selector dropdown menu.
![Screenshot of the repository page. A dropdown menu, labeled with a branch icon and "main", is highlighted with an orange outline.](/assets/images/help/branches/branch-selection-dropdown.png)
1. Optionally, if you want to create the new branch from a branch other than the default branch of the repository, click another branch, then select the branch selector dropdown menu again.
1. In the "Find or create a branch..." text field, type a unique name for your new branch, then click **Create branch**.
![Screenshot of the branch selector dropdown menu. "Create branch: new-branch" is highlighted with an orange outline.](/assets/images/help/branches/create-branch-text.png)
{% ifversion fpt or ghec or ghes > 3.4 %}
### Creating a branch for an issue
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](/issues/tracking-your-work-with-issues/creating-a-branch-for-an-issue)".
@@ -66,11 +68,12 @@ If the branch you want to delete is associated with an open pull request, you mu
{% data reusables.repositories.navigate-to-repo %}
{% data reusables.repositories.navigate-to-branches %}
1. Scroll to the branch that you want to delete, then click {% octicon "trash" aria-label="The trash icon to delete the branch" %}.
![delete the branch](/assets/images/help/branches/branches-delete.png) {% ifversion fpt or ghes > 3.5 or ghae > 3.5 or ghec %}
1. 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).
![Confirm deleting a branch](/assets/images/help/branches/confirm-deleting-branch.png){% endif %}
1. Next branch that you want to delete, click {% octicon "trash" aria-label="Delete BRANCH" %}.
![Screenshot of a branch in the branch list. A trash icon is highlighted with an orange outline.](/assets/images/help/branches/branches-delete.png)
{%- ifversion fpt or ghes > 3.5 or ghae > 3.5 or ghec %}
1. If the branch is associated with at least one open pull request, deleting the branch will close the pull requests. Read the warning, then click **Delete**.
{%- endif %}
{% data reusables.pull_requests.retargeted-on-branch-deletion %}
For more information, see "[About branches](/github/collaborating-with-issues-and-pull-requests/about-branches#working-with-branches)."

View File

@@ -39,7 +39,6 @@ You can restore the head branch of a closed pull request.
{% data reusables.repositories.list-closed-pull-requests %}
4. In the list of pull requests, click the pull request that's associated with the branch that you want to restore.
5. Near the bottom of the pull request, click **Restore branch**.
![Restore deleted branch button](/assets/images/help/branches/branches-restore-deleted.png)
## Further reading

View File

@@ -27,12 +27,11 @@ Although file URLs are automatically redirected, raw file URLs are not redirecte
{% data reusables.repositories.navigate-to-repo %}
{% data reusables.repositories.navigate-to-branches %}
1. In the list of branches, to the right of the branch you want to rename, click {% octicon "pencil" aria-label="The edit icon" %}.
![Pencil icon to the right of branch you want to rename](/assets/images/help/branch/branch-rename-edit.png)
1. Next to the branch you want to rename, click {% octicon "pencil" aria-label="Rename branch" %}.
![Screenshot of a branch in the branch list. A pencil icon is highlighted with an orange outline.](/assets/images/help/branches/branch-rename-edit.png)
1. Type a new name for the branch.
![Text field for typing new branch name](/assets/images/help/branch/branch-rename-type.png)
1. Review the information about local environments, then click **Rename branch**.
![Local environment information and "Rename branch" button](/assets/images/help/branch/branch-rename-rename.png)
## Updating a local clone after a branch name changes

View File

@@ -24,8 +24,6 @@ shortTitle: View branches
4. Optionally, use the search field on the top right. It provides a simple, case-insensitive, sub-string search on the branch name. It does not support any additional query syntax.
![The branches page for the Atom repository](/assets/images/help/branches/branches-overview-atom.png)
## Further reading
- "[Creating and deleting branches within your repository](/articles/creating-and-deleting-branches-within-your-repository)"

View File

@@ -1,4 +1,2 @@
4. Next to "Branch protection rules", click **Add rule.**
![Add branch protection rule button](/assets/images/help/branches/add-branch-protection-rule.png)
5. Under "Branch name pattern", type the branch name or pattern you want to protect.
![Branch rule field ](/assets/images/help/branches/specify-branch-protection-rule.png)
1. Next to "Branch protection rules", click **Add rule.**
1. Under "Branch name pattern", type the branch name or pattern you want to protect.

View File

@@ -1,2 +1,3 @@
1. Click **Closed** to see a list of closed pull requests.
![Closed tab](/assets/images/help/branches/branches-closed.png)
1. To see a list of closed pull requests, click **Closed**.
![Screenshot of the "Pull requests" page for a repository. A filter, labeled with a checkmark icon and "31 closed", is highlighted with an orange outline.](/assets/images/help/branches/branches-closed.png)

View File

@@ -1,2 +1,3 @@
1. Above the list of files, click {% octicon "git-branch" aria-label="The branch icon" %} **Branches**.
![Branches link on overview page](/assets/images/help/branches/branches-overview-link.png)
1. Above the list of files, click {% octicon "git-branch" aria-label="" %} **Branches**.
![Screenshot of the repository page. A link, labeled "55 branches", is highlighted with an orange outline.](/assets/images/help/branches/branches-overview-link.png)