Add git alises: mr, copy
This commit is contained in:
@@ -116,10 +116,13 @@ git_alias brD 'branch -D'
|
|||||||
git_alias wipe $'!sh -c \'git push $1 --delete $2\' -'
|
git_alias wipe $'!sh -c \'git push $1 --delete $2\' -'
|
||||||
git_alias rename "branch -m"
|
git_alias rename "branch -m"
|
||||||
git_alias brl "for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'"
|
git_alias brl "for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'"
|
||||||
|
git_alias copy 'branch --copy'
|
||||||
|
|
||||||
git_alias co checkout
|
git_alias co checkout
|
||||||
git_alias cob "checkout -b"
|
git_alias cob "checkout -b"
|
||||||
git_alias sw switch
|
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 ci commit
|
git_alias ci commit
|
||||||
git_alias cif "commit --fixup"
|
git_alias cif "commit --fixup"
|
||||||
|
|||||||
Reference in New Issue
Block a user