You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -23,5 +24,22 @@ You can also create a commit on behalf of an organization. For more information,
23
24
24
25
Rebasing allows you to change a series of commits and can modify the order of the commits in your timeline. For more information, see "[About git rebase](/github/getting-started-with-github/about-git-rebase)."
25
26
27
+
## About commit branches and tag labels
28
+
29
+
You can see which branch a commit is on by looking at the labels beneath the commit on the commit page.
30
+
31
+
{% data reusables.repositories.navigate-to-repo %}
32
+
{% data reusables.repositories.navigate-to-commit-page %}
33
+
1. Navigate to the commit by clicking the commit message link.
34
+

35
+
2. To see what branch the commit is on, check the label below the commit message.
36
+

37
+
38
+
If your commit is not on the default branch (`main`), the label will show the branches which contain the commit. If the commit is part of an unmerged pull request, you can click the link to go to the pull request.
39
+
40
+
Once the commit is on the default branch, any tags that contain the commit will be shown and the default branch will be the only branch listed. For more information on tags, see "[Git Basics - Tagging](https://git-scm.com/book/en/v2/Git-Basics-Tagging)" in the Git documentation.
41
+
42
+

43
+
26
44
## Further reading
27
-
- "[Committing and reviewing changes to your project](/desktop/contributing-to-projects/committing-and-reviewing-changes-to-your-project#about-commits)" on {% data variables.product.prodname_desktop %}
45
+
- "[Committing and reviewing changes to your project](/desktop/contributing-to-projects/committing-and-reviewing-changes-to-your-project#about-commits)" on {% data variables.product.prodname_desktop %}
Copy file name to clipboardExpand all lines: content/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/commit-branch-and-tag-labels.md
0 commit comments