From e329289e92f6386e0f237d68a79b8c3017f32f87 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 23 Nov 2021 13:55:07 +0100 Subject: [PATCH] vim: git aliase angepasst --- .bash_extra | 9 ++++++++- .gitconfig | 5 ----- 2 files changed, 8 insertions(+), 6 deletions(-) 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]