aliases: some git stuff
This commit is contained in:
parent
e9c05e4f5d
commit
b23ed68195
2 changed files with 8 additions and 1 deletions
|
|
@ -392,3 +392,10 @@ if exists gron; then
|
||||||
gron | grep "$@" | gron -u
|
gron | grep "$@" | gron -u
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
autostash() {
|
||||||
|
git stash
|
||||||
|
git "$@"
|
||||||
|
git stash pop
|
||||||
|
}
|
||||||
|
compdef _git autostash
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@ defvcsfun gcm "commit" "commit" "commit"
|
||||||
defvcsfun ga "add" "add" "add"
|
defvcsfun ga "add" "add" "add"
|
||||||
defvcsfun gpu "push" "push" "i_am_not_distributed_please_dont_push_me"
|
defvcsfun gpu "push" "push" "i_am_not_distributed_please_dont_push_me"
|
||||||
|
|
||||||
|
alias gs="git switch"
|
||||||
alias gco="git checkout"
|
alias gco="git checkout"
|
||||||
alias gca="git commit -a"
|
|
||||||
alias gap="git add --patch"
|
alias gap="git add --patch"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue