Skip to content

Commit d9d7b23

Browse files
committed
Add fetch-pull-requests alias
1 parent da40ca2 commit d9d7b23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ Here are some helpful aliases for your `~/.gitconfig`
154154
| alias | Description |
155155
| ----- | ----------- |
156156
| `ahead-of-master = log --oneline origin/master..HEAD` | Show commits that haven't made it to master yet |
157+
| `fetch-pull-requests = fetch origin '+refs/pull/*/head:refs/remotes/origin/pull/*'` | fetch pull requests from github so you can 'git checkout pull/123' and test them locally |
157158
| `roots = log --all --oneline --decorate --max-parents=0` | Show the roots |
158159
| `wip = rebase -i @{u}` | Starts an interactive rebase of all the commits you haven't pushed yet. Handy for collapsing a bunch of WIP snapshots into logical commits before pushing, without having to worry about accidentally squashing a commit someone else has already referred to |
159160

0 commit comments

Comments
 (0)