Skip to content

Commit bd20a55

Browse files
authored
Update comparing-commits.md to mention "OWNER:REPO:BRANCH" new pattern (github#34927)
1 parent f979b8f commit bd20a55

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ You can compare your base repository and any forked repository. This is the view
5858

5959
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`.
6060

61+
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)."
62+
6163
Here's an example of a [comparison between two repositories](https://github.com/github-linguist/linguist/compare/master...octocat:master).
6264

6365
## Comparisons across commits

0 commit comments

Comments
 (0)