From 53539c6168045c03bea952979c816f7508b02953 Mon Sep 17 00:00:00 2001 From: Yukai Chou Date: Tue, 15 Oct 2024 04:10:18 +0800 Subject: [PATCH] Split into two paras --- .../viewing-and-comparing-commits/comparing-commits.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits.md b/content/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits.md index 63ef8a218e5e..e8735054ed1c 100644 --- a/content/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits.md +++ b/content/pull-requests/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits.md @@ -56,7 +56,9 @@ To learn more about other comparison options, see "[AUTOTITLE](/pull-requests/co 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. -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)." +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).