From 2fbe2993b5646ddf2cf7f7fd8fdce5e84f5e1382 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Wed, 17 Sep 2014 11:53:44 +0200 Subject: [PATCH] [git] Add several usefull alias --- .gitconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitconfig b/.gitconfig index 1a3f2de..8b71a71 100644 --- a/.gitconfig +++ b/.gitconfig @@ -26,6 +26,16 @@ # textconv=odt2txt #[diff "odt"] # textconv=odt2txt + +# Remove last commit but keep changes + undo = git reset --soft HEAD^ +# last commit + lasts = log --pretty=oneline --abbrev-commit --graph --decorate +# last commit from last pull + lastpull = !git lasts HEAD --stat --no-merges + revertpart = reset -p HEAD^ + diffword = diff --color-words=. + save = stash save -u [difftool "meld"] path = /usr/bin/meld trustExitCode = false