git/config: Add alias for checking out PRs

This commit is contained in:
earnest ma 2021-12-14 00:04:32 -05:00
parent c23353c14c
commit d96980d0f0
No known key found for this signature in database
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
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