Skip to content

Commit d1a5dbb

Browse files
authored
Mention "OWNER:REPO:BRANCH" new pattern
in the "Comparing across forks" section
1 parent b7b273c commit d1a5dbb

File tree

1 file changed

+1
-1
lines changed
  • content/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits

1 file changed

+1
-1
lines changed

content/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To learn more about other comparison options, see "[AUTOTITLE](/pull-requests/co
5656

5757
You can compare your base repository and any forked repository. This is the view that's presented when a user performs a Pull Request to a project.
5858

59-
To compare branches on different repositories, preface the branch names with user names. For example, by specifying `octocat:main` for `base` and `octo-org:main` for `compare`, you can compare the `main` branch of the repositories respectively owned by `octocat` and `octo-org`.
59+
To compare branches on different repositories, preface the branch names with user names. For example, by specifying `octocat:main` for `base` and `octo-org:main` for `compare`, you can compare the `main` branch of the repositories respectively owned by `octocat` and `octo-org`. You can also preface the branch name with a user name and a repository name. For example, specifying `octocat:awesome-app:main` would use the `main` branch in the `octocat/awesome-app` repository. This can be useful in large organizations, where you might have an upstream repository and a fork both owned by the organization. For more information, see "[AUTOTITLE](/pull-requests/collaborating-with-pull-requests/working-with-forks/about-forks)."
6060

6161
Here's an example of a [comparison between two repositories](https://github.com/github-linguist/linguist/compare/master...octocat:master).
6262

0 commit comments

Comments
 (0)