1
0
Fork 0

gh: Alias co to use custom fetch-branch for pulling

This commit is contained in:
Jeremy Kaplan 2025-01-13 11:21:58 -05:00
commit 7f366104fb

View file

@ -9,6 +9,7 @@ prompt: enabled
pager:
# Aliases allow you to create nicknames for gh commands
aliases:
co: pr checkout
co: >
!(ref="$(gh pr view "$1" --json 'headRefName' --jq '.headRefName')" && git fetch-branch "$ref" && git switch "$ref")
prw: pr view -w
version: "1"