From d96980d0f01b3272b67758b5fed3cbc9a3b206d1 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Tue, 14 Dec 2021 00:04:32 -0500 Subject: [PATCH] git/config: Add alias for checking out PRs --- git/.config/git/config | 1 + 1 file changed, 1 insertion(+) diff --git a/git/.config/git/config b/git/.config/git/config index 7df18c3..c74269e 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -64,6 +64,7 @@ checkup = !git log -1 && (git fetch --all 2>/dev/null || true) && git status fuckit = reset --hard setup = !git init && git commit --allow-empty -m \"Initial commit\" + fpr = !sh -c 'git fetch ${2:-origin} +refs/pull/$1/head:refs/remotes/${2:-origin}/pr/$1 && git checkout pr/$1' - e = commit --allow-empty-message -m '' br = branch co = checkout