8000 Improve recently merged section · iyangming/github-cheat-sheet@3ce96f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ce96f8

Browse files
author
Rafal Chmiel
committed
Improve recently merged section
1 parent 58d4f6d commit 3ce96f8

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

README.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -355,16 +355,35 @@ Using the *unfold* button in the gutter of a diff, you can reveal additional lin
355355
[*Read more about expanding context in diffs.*](https://github.com/blog/1705-expanding-context-in-diffs)
356356

357357
#### Getting content of Pull Request in Diff or Patch format
358+
You can get the diff of a Pull Request by adding a `.diff` or `.patch`
359+
extension to the end of the URL. For example:
358360

359-
You can get the diff of viewed pull request by adding `.diff` or `.patch`
360-
to the end of URL. For example:
361+
```
362+
https://github.com/tiimgreen/github-cheat-sheet/pull/15
363+
https://github.com/tiimgreen/github-cheat-sheet/pull/15.diff
364+
https://github.com/tiimgreen/github-cheat-sheet/pull/15.patch
365+
```
361366

362-
* <https://github.com/tiimgreen/github-cheat-sheet/pull/15>
363-
* <https://github.com/tiimgreen/github-cheat-sheet/pull/15.diff> - the pull
364-
request in DIFF format
365-
* <https://github.com/tiimgreen/github-cheat-sheet/pull/15.patch> - the pull
366-
request as PATCH
367+
The `.diff` extension would give you this in plain text:
367368

369+
```
370+
diff --git a/README.md b/README.md
371+
index 88fcf69..8614873 100644
372+
--- a/README.md
373+
+++ b/README.md
374+
@@ -28,6 +28,7 @@ All the hidden and not hidden features of Git and GitHub. This cheat sheet was i
375+
- [Merged Branches](#merged-branches)
376+
- [Quick Licensing](#quick-licensing)
377+
- [TODO Lists](#todo-lists)
378+
+- [Relative Links](#relative-links)
379+
- [.gitconfig Recommendations](#gitconfig-recommendations)
380+
- [Aliases](#aliases)
381+
- [Auto-correct](#auto-correct)
382+
@@ -381,6 +382,19 @@ When they are clicked, they will be updated in the pure Markdown:
383+
- [ ] Sleep
384+
385+
(...)
386+
```
368387

369388
### Hub
370389
[Hub](https://github.com/github/hub) is a command line Git wrapper that gives you extra features and commands that make working with GitHub easier.

0 commit comments

Comments
 (0)
0