Add alias for checking out latest git tag
This commit is contained in:
parent
31885d95c5
commit
2aa0dab50c
@ -23,3 +23,5 @@
|
||||
# see https://gist.github.com/gnarf/5406589 (GitHub, modified to be similar to GitLab)
|
||||
mr = !sh -c 'git fetch -fu $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
|
||||
pr = !sh -c 'git fetch -fu $1 refs/pull/$2/head:pr-$1-$2 && git checkout pr-$1-$2' -
|
||||
# checkout latest tag
|
||||
latest = !sh -c 'git describe --tags $(git rev-list --tags --max-count=1) | xargs git checkout' -
|
||||
|
Loading…
Reference in New Issue
Block a user