You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
4
4
## Table of Contents
5
5
-[GitHub](#github)
6
6
-[Ignore Whitespace](#ignore-whitespace)
7
+
-[Adjust Tab Space](#adjust-tab-space)
7
8
-[Commit History by Author](#commit-history-by-author)
8
9
-[Cloning a Repository](#cloning-a-repository)
9
10
-[Comparing Branches](#comparing-branches)
@@ -61,6 +62,17 @@ Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabli
61
62
62
63
[*Read more about GitHub secrets.*](https://github.com/blog/967-github-secrets)
63
64
65
+
### Adjust Tab Space
66
+
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.
67
+
68
+
Here is a Go source file [before](https://github.com/pengwynn/flint/blob/master/flint/flint.go) adding `?ts=4`:
69
+
70
+

71
+
72
+
...and this is [after](https://github.com/pengwynn/flint/blob/master/flint/flint.go?ts=4) adding `?ts=4`:
73
+
74
+

75
+
64
76
### Commit History by Author
65
77
To view all commits on a repo by author add `?author=username` to the URL.
66
78
@@ -594,7 +606,7 @@ A Git query allows you to search all your previous commit messages and find the
594
606
$ git show :/query
595
607
```
596
608
597
-
Where `query` is the term you want to search, this then finds the last one and gives details on the lines that were changed.
609
+
Where `query`(case-sensitive) is the term you want to search, this then finds the last one and gives details on the lines that were changed.
0 commit comments