File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -236,6 +236,19 @@ https://github.com/rails/rails/compare/master@{2014-10-04}...master
236
236
```
237
237
which allows you to see the difference on the master branch up a set time ago or a specified date.
238
238
239
+ ### Compare branches across forked repositories
240
+
241
+ To use GitHub to compare branches across forked repositories, change the URL to look like this:
242
+
243
+ ```
244
+ https://github.com/user/repo/compare/{foreign-user}:{branch}...{own-branch}
245
+ ```
246
+
247
+ eg.:
248
+ ```
249
+ https://github.com/rails/rails/compare/byroot:idempotent-counter-caches...master
250
+ ```
251
+
239
252
## Line Highlighting in Repos
240
253
241
254
Either adding ` #L52 ` to the end of a code file URL or simply clicking the line number will highlight that line number.
You can’t perform that action at this time.
0 commit comments