Add git alias pr for pull request

This commit is contained in:
Martin Blazik
2022-08-24 08:16:13 +02:00
parent ea2162cbe2
commit eee2a87011

View File

@@ -121,8 +121,8 @@ git_alias copy 'branch --copy'
git_alias co checkout
git_alias cob "checkout -b"
git_alias sw switch
# https://docs.gitlab.com/ee/user/project/merge_requests/reviews/index.html#checkout-merge-requests-locally-through-the-head-ref
git_alias mr $'!sh -c \'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2\' -'
git_alias pr $'!sh -c \'git fetch $1 pull/$2/head:pr-$1-$2 && git checkout pr-$1-$2\' -'
git_alias ci commit
git_alias cif "commit --fixup"