gitconfig: Add alias "fetch-pr"

This commit is contained in:
Lexi / Zoe 2022-05-04 10:56:51 +02:00
parent 5b894e3ce5
commit 9f0236db3a
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
2 changed files with 6 additions and 0 deletions

View File

@ -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"

View File

@ -8,3 +8,6 @@
[commit]
gpgsign = true
[tag]
gpgsign = true