8000 Merge pull request #13 from SeriousM/patch-1 · s30java/github-cheat-sheet@054836f · GitHub
[go: up one dir, main page]

Skip to content

Commit 054836f

Browse files
committed
Merge pull request tiimgreen#13 from SeriousM/patch-1
Added cross repo comparision
2 parents 0d31b36 + f0d3e50 commit 054836f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,19 @@ https://github.com/rails/rails/compare/master@{2014-10-04}...master
236236
```
237237
which allows you to see the difference on the master branch up a set time ago or a specified date.
238238

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+
239252
## Line Highlighting in Repos
240253

241254
Either adding `#L52` to the end of a code file URL or simply clicking the line number will highlight that line number.

0 commit comments

Comments
 (0)
0