git/config: Add alias for checking out PRs

pull/1/head
earnest ma 2021-12-14 00:04:32 -05:00
parent c23353c14c
commit d96980d0f0
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@
checkup = !git log -1 && (git fetch --all 2>/dev/null || true) && git status checkup = !git log -1 && (git fetch --all 2>/dev/null || true) && git status
fuckit = reset --hard fuckit = reset --hard
setup = !git init && git commit --allow-empty -m \"Initial commit\" 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 '' e = commit --allow-empty-message -m ''
br = branch br = branch
co = checkout co = checkout