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