gitconfig: Add alias "fetch-pr"
This commit is contained in:
parent
5b894e3ce5
commit
9f0236db3a
2 changed files with 6 additions and 0 deletions
|
|
@ -61,3 +61,6 @@
|
|||
|
||||
# Submodule helpers
|
||||
sm-update = submodule update --init --recursive --remote --merge
|
||||
|
||||
# Fetch a branch from a pull request (supported by GitHub)
|
||||
fetch-pr = "!f() { [ $# -eq 2 ] || { echo 'Usage: git fetch-pr PULL_REQUEST_ID BRANCH_NAME'; exit 1; }; git fetch origin pull/$1/head:$2; }; f"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue