mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-11 10:24:06 +02:00
Merge pull request #13 from SeriousM/patch-1
Added cross repo comparision
This commit is contained in:
13
README.md
13
README.md
@@ -236,6 +236,19 @@ https://github.com/rails/rails/compare/master@{2014-10-04}...master
|
||||
```
|
||||
which allows you to see the difference on the master branch up a set time ago or a specified date.
|
||||
|
||||
### Compare branches across forked repositories
|
||||
|
||||
To use GitHub to compare branches across forked repositories, change the URL to look like this:
|
||||
|
||||
```
|
||||
https://github.com/user/repo/compare/{foreign-user}:{branch}...{own-branch}
|
||||
```
|
||||
|
||||
eg.:
|
||||
```
|
||||
https://github.com/rails/rails/compare/byroot:idempotent-counter-caches...master
|
||||
```
|
||||
|
||||
## Line Highlighting in Repos
|
||||
|
||||
Either adding `#L52` to the end of a code file URL or simply clicking the line number will highlight that line number.
|
||||
|
Reference in New Issue
Block a user