config/git: little aliases
This commit is contained in:
parent
5640144127
commit
5def3836ea
|
@ -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
|
||||
|
|
|
@ -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})"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue