git alias to work on a PR in a worktree.

This commit is contained in:
Julien Palard 2018-12-04 22:37:24 +01:00
parent 946b099752
commit 6f5e4dc77b
1 changed files with 1 additions and 0 deletions

View File

@ -11,3 +11,4 @@
br = branch
ci = commit
lg = log --date-order --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
pr = !sh -c \"git fetch upstream pull/${1}/head:pr_${1} && git worktree add ../$(basename $(git rev-parse --show-toplevel))-pr-${1} pr_${1}\"