From 849827489dc7ec27a685cd652fbe290b2be926ab Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 26 Oct 2021 12:15:48 +0200 Subject: [PATCH] git: aliase --- .gitconfig | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.gitconfig b/.gitconfig index 0b8bb64..af2255e 100644 --- a/.gitconfig +++ b/.gitconfig @@ -8,21 +8,14 @@ cm = commit -m c = checkout d = diff - ds = diff --staged - rc = rebase --continue remote = remote -v - stagep = stage -p + sp = stage -p last = log -1 HEAD --stat - - # Delete all local branches but master and the current one, only if they are fully merged with master. - dbra = "!f(){\ - git branch | grep -v "master" | grep -v ^* | xargs git branch -d;\ + # Delete all local branches but master and the current one, only if they are fully merged with master. + delbranches = "!f(){\ + - git branch | grep -v "master" | grep -v ^* | xargs git branch -d;\ }; f" - # Delete all local branches but master and the current one. - dbraf = "!f(){\ - git branch | grep -v "master" | grep -v ^* | xargs git branch -D;\ - }; f" - + dellast = reset HEAD^1 [core] editor = vim [help]