mirror of
https://github.com/tiimgreen/github-cheat-sheet.git
synced 2025-08-10 18:04:10 +02:00
Merge pull request #26 from rb2/pull-as-diff
Getting content of Pull Request in Diff or Patch format
This commit is contained in:
13
README.md
13
README.md
@@ -27,6 +27,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
|
||||
- [Rendered prose Diffs](#rendered-prose-diffs)
|
||||
- [Diffable Maps](#diffable-maps)
|
||||
- [Expanding Context in Diffs](#expanding-context-in-diffs)
|
||||
- [Getting content of Pull Request in Diff or Patch format](#getting-content-of-pull-request-in-diff-or-patch-format)
|
||||
- [Hub](#hub)
|
||||
- [Decreasing Contributor Friction](#decreasing-contributor-friction)
|
||||
- [Contributing Guidelines](#contributing-guidelines)
|
||||
@@ -353,6 +354,18 @@ Using the *unfold* button in the gutter of a diff, you can reveal additional lin
|
||||
|
||||
[*Read more about expanding context in diffs.*](https://github.com/blog/1705-expanding-context-in-diffs)
|
||||
|
||||
#### Getting content of Pull Request in Diff or Patch format
|
||||
|
||||
You can get the diff of viewed pull request by adding `.diff` or `.patch`
|
||||
to the end of URL. For example:
|
||||
|
||||
* <https://github.com/tiimgreen/github-cheat-sheet/pull/15>
|
||||
* <https://github.com/tiimgreen/github-cheat-sheet/pull/15.diff> - the pull
|
||||
request in DIFF format
|
||||
* <https://github.com/tiimgreen/github-cheat-sheet/pull/15.patch> - the pull
|
||||
request as PATCH
|
||||
|
||||
|
||||
### Hub
|
||||
[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.
|
||||
|
||||
|
Reference in New Issue
Block a user