vim: git aliase angepasst
This commit is contained in:
parent
77e9fcd364
commit
e329289e92
2 changed files with 8 additions and 6 deletions
|
@ -130,6 +130,10 @@ function ssh {
|
|||
fi
|
||||
command ssh "$@"
|
||||
}
|
||||
function gcm {
|
||||
git commit -m "$*"
|
||||
}
|
||||
|
||||
|
||||
|
||||
### Aliase
|
||||
|
@ -149,8 +153,11 @@ alias untar="tar -xzf"
|
|||
alias unmount="umount"
|
||||
# git
|
||||
alias gsps="git stash && git pull && git stash pop"
|
||||
alias gcm="git commit -m"
|
||||
alias gdel="git add . && git stash && git stash clear"
|
||||
alias glast="git log -1 HEAD --stat"
|
||||
alias gsp="git stage -p"
|
||||
alias gd="git diff"
|
||||
alias gc="git checkout"
|
||||
# vim
|
||||
alias v="view"
|
||||
# docker
|
||||
|
|
|
@ -5,12 +5,7 @@
|
|||
helper = store
|
||||
[alias]
|
||||
logs = log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
|
||||
cm = commit -m
|
||||
c = checkout
|
||||
d = diff
|
||||
remote = remote -v
|
||||
sp = stage -p
|
||||
last = log -1 HEAD --stat
|
||||
[core]
|
||||
editor = vim
|
||||
[help]
|
||||
|
|
Loading…
Reference in a new issue