1
0
mirror of https://github.com/tiimgreen/github-cheat-sheet.git synced 2025-08-10 18:04:10 +02:00

Add example for tab space trick

This commit is contained in:
Rafal Chmiel
2014-04-19 10:39:04 +01:00
parent d391408d6d
commit 5c5278bdd7

View File

@@ -65,6 +65,14 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli
### 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.
Here is a Go source file beofre adding `?ts=4`:
![Before, tab space example](http://i.imgur.com/GIT1Fr0.png)
...and this is after adding `?ts=4`:
![After, tab space example](http://i.imgur.com/70FL4H9.png)
### Commit History by Author
To view all commits on a repo by author add `?author=username` to the URL.