From fc70cb13a8728805f1a4c4877a63fe1bcd060a46 Mon Sep 17 00:00:00 2001 From: bretello Date: Thu, 3 Dec 2020 18:29:40 +0100 Subject: [PATCH] update git config --- gitconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gitconfig b/gitconfig index 4c5fe32..8060699 100644 --- a/gitconfig +++ b/gitconfig @@ -1,6 +1,10 @@ +# vi:syntax=gitconfig [core] excludesfile = ~/.gitignore +#[init] +# templatedir = ~/.git_template + [pull] ff = only rebase = true @@ -9,12 +13,24 @@ rebase = true ff = only tool = vimdiff2 +[mergetool] +keepBackup = false + [diff] tool = vimdiff2 +[difftool] +prompt=true [rebase] autostash = true autosquash = true +squash = true [log] abbrevcommit = true + +[format] +#pretty = format:%C(yellow)commit %h%Cred%d %Creset%nAuthor: %Cblue%>(12)%an%n%CgreenDate: %ar%Creset%n%n%B + +[alias] +showtool = "!showci () { rev=${1:-HEAD}; git difftool $rev~1 $rev; }; showci $1"