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
|
fi
|
||||||
command ssh "$@"
|
command ssh "$@"
|
||||||
}
|
}
|
||||||
|
function gcm {
|
||||||
|
git commit -m "$*"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Aliase
|
### Aliase
|
||||||
|
@ -149,8 +153,11 @@ alias untar="tar -xzf"
|
||||||
alias unmount="umount"
|
alias unmount="umount"
|
||||||
# git
|
# git
|
||||||
alias gsps="git stash && git pull && git stash pop"
|
alias gsps="git stash && git pull && git stash pop"
|
||||||
alias gcm="git commit -m"
|
|
||||||
alias gdel="git add . && git stash && git stash clear"
|
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
|
# vim
|
||||||
alias v="view"
|
alias v="view"
|
||||||
# docker
|
# docker
|
||||||
|
|
|
@ -5,12 +5,7 @@
|
||||||
helper = store
|
helper = store
|
||||||
[alias]
|
[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
|
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
|
remote = remote -v
|
||||||
sp = stage -p
|
|
||||||
last = log -1 HEAD --stat
|
|
||||||
[core]
|
[core]
|
||||||
editor = vim
|
editor = vim
|
||||||
[help]
|
[help]
|
||||||
|
|
Loading…
Reference in a new issue