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

View File

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