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