gh: Alias co to use custom fetch-branch for pulling
This commit is contained in:
parent
0144cb903d
commit
7f366104fb
1 changed files with 3 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ prompt: enabled
|
||||||
pager:
|
pager:
|
||||||
# Aliases allow you to create nicknames for gh commands
|
# Aliases allow you to create nicknames for gh commands
|
||||||
aliases:
|
aliases:
|
||||||
co: pr checkout
|
co: >
|
||||||
prw: pr view -w
|
!(ref="$(gh pr view "$1" --json 'headRefName' --jq '.headRefName')" && git fetch-branch "$ref" && git switch "$ref")
|
||||||
|
prw: pr view -w
|
||||||
version: "1"
|
version: "1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue