config/git: little aliases

This commit is contained in:
xerus2000 2020-12-07 21:55:25 +01:00
parent 5640144127
commit 5def3836ea
2 changed files with 3 additions and 1 deletions

View File

@ -62,6 +62,7 @@
r = remote -v r = remote -v
b = branch -vv b = branch -vv
ba = b -a
ref = reflog ref = reflog
rev = rev-parse --short rev = rev-parse --short
head = rev-parse --short HEAD head = rev-parse --short HEAD
@ -121,6 +122,7 @@
# data # data
journal = !git cme "notes/journal:" -- $(git root)/2-standards/notes/journal journal = !git cme "notes/journal:" -- $(git root)/2-standards/notes/journal
note = !git cme "notes:" -- $(git root)/2-standards/notes
[filter "lfs"] [filter "lfs"]
clean = git-lfs clean -- %f clean = git-lfs clean -- %f

View File

@ -81,7 +81,7 @@ gitremote() {
gitclone() { gitclone() {
remote=$(gitremote "$@") remote=$(gitremote "$@")
echo $remote echo $remote
git clone $remote ${@:4} git clone $remote ${@:4} || return $?
cd "$(test $4 && echo $4 || basename ${remote/.git})" cd "$(test $4 && echo $4 || basename ${remote/.git})"
} }