diff --git a/.bash_extra b/.bash_extra index fd8235c..f444cea 100644 --- a/.bash_extra +++ b/.bash_extra @@ -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 diff --git a/.gitconfig b/.gitconfig index 3b8a6d6..9cc9023 100644 --- a/.gitconfig +++ b/.gitconfig @@ -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]