1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-13 19:34:00 +02:00

Update links/images

This commit is contained in:
Tim Green
2015-01-18 22:37:24 +00:00
parent fba6fa9cdb
commit 57f1b820c0

View File

@@ -77,11 +77,11 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli
### Adjust Tab Space ### Adjust Tab Space
Adding `?ts=4` to a diff or file URL will display tab characters as 4 spaces wide instead of the default 8. The number after `ts` can be adjusted to suit your preference. This does not work on Gists, or raw file views, but a [Chrome extension](https://chrome.google.com/webstore/detail/github-tab-size/ofjbgncegkdemndciafljngjbdpfmbkn) can automate this. Adding `?ts=4` to a diff or file URL will display tab characters as 4 spaces wide instead of the default 8. The number after `ts` can be adjusted to suit your preference. This does not work on Gists, or raw file views, but a [Chrome extension](https://chrome.google.com/webstore/detail/github-tab-size/ofjbgncegkdemndciafljngjbdpfmbkn) can automate this.
Here is a Go source file [before](https://github.com/pengwynn/flint/blob/master/flint/flint.go) adding `?ts=4`: Here is a Go source file before adding `?ts=4`:
![Before, tab space example](http://i.imgur.com/GIT1Fr0.png) ![Before, tab space example](http://i.imgur.com/GIT1Fr0.png)
...and this is [after](https://github.com/pengwynn/flint/blob/master/flint/flint.go?ts=4) adding `?ts=4`: ...and this is after adding `?ts=4`:
![After, tab space example](http://i.imgur.com/70FL4H9.png) ![After, tab space example](http://i.imgur.com/70FL4H9.png)
@@ -92,7 +92,7 @@ To view all commits on a repo by author add `?author=username` to the URL.
https://github.com/rails/rails/commits/master?author=dhh https://github.com/rails/rails/commits/master?author=dhh
``` ```
![DHH commit history](http://i.imgur.com/mDWwuaY.png) ![DHH commit history](http://i.imgur.com/S7AE29b.png)
[*Read more about the differences between commits views.*](https://help.github.com/articles/differences-between-commit-views) [*Read more about the differences between commits views.*](https://help.github.com/articles/differences-between-commit-views)
@@ -149,7 +149,7 @@ For example:
https://github.com/rails/rails/compare/master...4-1-stable https://github.com/rails/rails/compare/master...4-1-stable
``` ```
![Rails branch compare example](http://i.imgur.com/0Z52X5Y.png) ![Rails branch compare example](http://i.imgur.com/tIRCOsK.png)
`{range}` can be changed to things like: `{range}` can be changed to things like: