Skip to content

Commit

Permalink
Update comparing-commits.md to mention "OWNER:REPO:BRANCH" new pattern (
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi authored Oct 14, 2024
1 parent f979b8f commit bd20a55
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ You can compare your base repository and any forked repository. This is the view

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)."

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

## Comparisons across commits
Expand Down

0 comments on commit bd20a55

Please sign in to comment.