8000 Add revert pull request function · mosgithub/github-cheat-sheet@8935509 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8935509

Browse files
committed
Add revert pull request function
1 parent 80da03b commit 8935509

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
1111
- [Adjust Tab Space](#adjust-tab-space)
1212
- [Commit History by Author](#commit-history-by-author)
1313
- [Cloning a Repository](#cloning-a-repository)
14-
- [Compare all Branches to Another Branch](#compare-all-branches-to-another-branch)
15-
- [Comparing Branches](#comparing-branches)
16-
- [Compare Branches across Forked Repositories](#compare-branches-across-forked-repositories)
14+
- [Branch](#branch)
15+
- [Compare all Branches to Another Branch](#compare-all-branches-to-another-branch)
16+
- [Comparing Branches](#comparing-branches)
17+
- [Compare Branches across Forked Repositories](#compare-branches-across-forked-repositories)
1718
- [Gists](#gists)
1819
- [Git.io](#gitio)
1920
- [Keyboard Shortcuts](#keyboard-shortcuts)
@@ -33,6 +34,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c
3334
- [Metadata and Plugin Support for GitHub Pages](#metadata-and-plugin-support-for-github-pages)
3435
- [Viewing YAML Metadata in your Documents](#viewing-yaml-metadata-in-your-documents)
3536
- [Rendering Tabular Data](#rendering-tabular-data)
37+
- [Revert a Pull Request](#revert-a-pull-request)
3638
- [Diffs](#diffs)
3739
- [Rendered prose Diffs](#rendered-prose-diffs)
3840
- [Diffable Maps](#diffable-maps)
@@ -100,7 +102,8 @@ $ git clone https://github.com/tiimgreen/github-cheat-sheet
100102

101103
[*Read more about the Git `clone` command.*](http://git-scm.com/docs/git-clone)
102104

103-
### Compare all Branches to Another Branch
105+
###Branch
106+
#### Compare all Branches to Another Branch
104107

105108
If you go to the repo's [Branches](https://github.com/tiimgreen/github-cheat-sheet/branches) page, next to the Commits button:
106109

@@ -128,7 +131,7 @@ To see the merged branches, append `?merged=1` to the URL.
128131

129132
This view allows you to delete branches easily from the page, without using the command-line.
130133

131-
### Comparing Branches
134+
#### Comparing Branches
132135
To use GitHub to compare branches, change the URL to look like this:
133136

134137
```
@@ -160,7 +163,7 @@ https://github.com/rails/rails/compare/master@{2014-10-04}...master
160163

161164
[*Read more about comparing commits across time.*](https://help.github.com/articles/comparing-commits-across-time)
162165

163-
### Compare Branches across Forked Repositories
166+
#### Compare Branches across Forked Repositories
164167
To use GitHub to compare branches across forked repositories, change the URL to look like this:
165168

166169
```
@@ -433,6 +436,11 @@ GitHub supports rendering tabular data in the form of `.csv` (comma-separated) a
433436

434437
[*Read more about rendering tabular data.*](https://github.com/blog/1601-see-your-csvs)
435438

439+
###Revert a Pull Request
440+
After a pull request is merged, you may find it does not help anything or it was a bad decision to merge the pull request.
441+
442+
You can revert it by clicking the **Revert** button on the right side of a commit in the pull request page to create a pull request with reverted changes to this specific pull request.
443+
436444
### Diffs
437445
#### Rendered Prose Diffs
438446
Commits and pull requests including rendered documents supported by GitHub (e.g. Markdown) feature *source* and *rendered* views.

0 commit comments

Comments
 (0)
0