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
@@ -43,11 +48,15 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
43
48
-[Aliases](#aliases)
44
49
-[Auto-Correct](#auto-correct)
45
50
-[Color](#color)
51
+
-[Git Resources](#git-resources)
52
+
-[Git Books](#git-books)
46
53
47
54
## GitHub
48
55
### Ignore Whitespace
49
56
Adding `?w=1` to any diff URL will remove any changes only in whitespace, enabling you to see only that code that has changed.
50
57
58
+

59
+
51
60
[*Read more about GitHub secrets.*](https://github.com/blog/967-github-secrets)
52
61
53
62
### Commit History by Author
@@ -57,6 +66,8 @@ To view all commits on a repo by author add `?author=username` to the URL.
[Gists](https://gist.github.com/) are an easy way to work with small bits of code without creating a fully fledged repository. Add `.pibb` to the end of any Gist URL ([like this](https://gist.github.com/tiimgreen/10545817.pibb)) in order to get the *HTML only* version suitable for embedding in any other site.
130
+
[Gists](https://gist.github.com/) are an easy way to work with small bits of code without creating a fully fledged repository.
131
+
132
+

133
+
134
+
Add `.pibb` to the end of any Gist URL ([like this](https://gist.github.com/tiimgreen/10545817.pibb)) in order to get the *HTML only* version suitable for embedding in any other site.
111
135
112
136
Gists can be treated as a full repository so they can be cloned like any other:
@@ -143,7 +171,9 @@ When on a repository page, keyboard shortcuts allow you to navigate easily.
143
171
- Pressing `l` will edit labels on existing Issues.
144
172
- Pressing `y`**when looking at a file** (e.g. `https://github.com/tiimgreen/github-cheat-sheet/blob/master/README.md`) will change your URL to one which, in effect, freezes the page you are looking at. If this code changes, you will still be able to see what you saw at that current time.
145
173
146
-
To see all of the shortcuts for the current page press `?`.
174
+
To see all of the shortcuts for the current page press `?`:
If set up correctly, every time you receive a Pull Request, [Travis CI](https://travis-ci.org/) will build that Pull Request just like it would every time you make a new commit. Read more about how to [get started with Travis CI](http://docs.travis-ci.com/user/getting-started/).
213
+
214
+
[](https://github.com/octokit/octokit.rb/pull/452)
215
+
216
+
[*Read more about the commit status API.*](https://github.com/blog/1227-commit-status-api)
217
+
181
218
### Syntax Highlighting in Markdown Files
182
219
For example, to syntax highlight Ruby code in your Markdown files write:
183
220
@@ -212,7 +249,7 @@ Would produce:
212
249
213
250
:smile:
214
251
215
-
The full list of supported Emojis on GitHub can be found [here](http://www.emoji-cheat-sheet.com/) or [here](https://github.com/scotch-io/All-Github-Emoji-Icons).
252
+
The full list of supported Emojis on GitHub can be found at [emoji-cheat-sheet.com](http://www.emoji-cheat-sheet.com/) or [scotch-io/All-Github-Emoji-Icons](https://github.com/scotch-io/All-Github-Emoji-Icons).
216
253
217
254
The top 5 used Ejmojis on GitHub are:
218
255
@@ -302,7 +339,7 @@ Within Jekyll pages and posts, repository information is available within the `s
302
339
303
340
The Jemoji and jekyll-mentions plugins enable [emoji](#emojis) and [@mentions](https://github.com/blog/821) in your Jekyll posts and pages to work just like you'd expect when interacting with a repository on GitHub.com.
304
341
305
-
[*Read more about repository metadata and plugin support for GitHub Pages.*](Repository metadataandpluginsupportfor GitHub Pages)
342
+
[*Read more about repository metadata and plugin support for GitHub Pages.*](https://github.com/blog/1797-repository-metadata-and-plugin-support-for-github-pages)
306
343
307
344
### Diffs
308
345
#### Rendered Prose Diffs
@@ -330,6 +367,37 @@ Using the *unfold* button in the gutter of a diff, you can reveal additional lin
330
367
331
368
[*Read more about expanding context in diffs.*](https://github.com/blog/1705-expanding-context-in-diffs)
332
369
370
+
#### Diff or Patch of Pull Request
371
+
You can get the diff of a Pull Request by adding a `.diff` or `.patch`
0 commit comments