From f5dc53aa6d8996e99e02e2792a9df91752fa9561 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Thu, 11 Jul 2024 11:31:48 +0300 Subject: [PATCH] Add useful git options from blog post * https://jvns.ca/blog/2024/02/16/popular-git-config-options/ --- .gitconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitconfig b/.gitconfig index 7e9ad8b..5cb7140 100644 --- a/.gitconfig +++ b/.gitconfig @@ -4,6 +4,7 @@ [merge] tool = meld conflictStyle = zdiff3 + keepbackup = false [alias] plog = log --graph --pretty=format:'%h -%d %s %n' --abbrev-commit --date=relative --branches @@ -27,6 +28,7 @@ smtpServerPort = 587 [diff] wsErrorHighlight = all + algorithm = histogram [cola] spellcheck = false [push] @@ -58,3 +60,9 @@ allow = always [column] ui = auto +[rebase] + autosquash = true +[branch] + sort = -committerdate +[fetch] + prune = true