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

Merge pull request #31 from nschonni/patch-1

Add Tab Space URL hack
This commit is contained in:
Rafal Chmiel
2014-04-19 10:33:54 +01:00

View File

@@ -4,6 +4,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
## Table of Contents ## Table of Contents
- [GitHub](#github) - [GitHub](#github)
- [Ignore Whitespace](#ignore-whitespace) - [Ignore Whitespace](#ignore-whitespace)
- [Adjust Tab Space](#adjust-tab-space)
- [Commit History by Author](#commit-history-by-author) - [Commit History by Author](#commit-history-by-author)
- [Cloning a Repository](#cloning-a-repository) - [Cloning a Repository](#cloning-a-repository)
- [Comparing Branches](#comparing-branches) - [Comparing Branches](#comparing-branches)
@@ -61,6 +62,9 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli
[*Read more about GitHub secrets.*](https://github.com/blog/967-github-secrets) [*Read more about GitHub secrets.*](https://github.com/blog/967-github-secrets)
### 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.
### Commit History by Author ### Commit History by Author
To view all commits on a repo by author add `?author=username` to the URL. To view all commits on a repo by author add `?author=username` to the URL.