From 88a154659ec8059aab850c35192cf4e228b87b26 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 29 Feb 2024 20:34:48 +0300 Subject: git: clean up home --- .config/git/config | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ .config/git/ignore | 5 ++++ 2 files changed, 93 insertions(+) create mode 100644 .config/git/config create mode 100644 .config/git/ignore (limited to '.config/git') diff --git a/.config/git/config b/.config/git/config new file mode 100644 index 0000000..3ad8b1a --- /dev/null +++ b/.config/git/config @@ -0,0 +1,88 @@ +[include] + path = ./gitconfig.local +[core] + autocrlf = input + safecrlf = true + excludesfile = ~/.config/git/ignore + pager = delta +[alias] + co = checkout + ci = commit + st = status + br = branch + type = cat-file -t + dump = cat-file -p + adog = log --all --decorate --oneline --graph + hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short + sl = log --oneline --decorate -20 + sla = log --oneline --decorate --graph --all -20 + branches = "for-each-ref --sort=-committerdate --format='%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)' refs/remotes" + dft = difftool +[credential] + helper = cache --timeout=3600 +[commit] + gpgsign = true + verbose = true +[pull] + ff = only +[push] + default = simple +[merge] + conflictStyle = zdiff3 +[rebase] + autoSquash = true +[rerere] + enabled = true +[help] + autoCorrect = prompt +[init] + defaultBranch = main +[diff] + tool = difftastic + algorithm = histogram +[sendemail] + smtpserver = /usr/bin/msmtp + smtpserveroption = -a + smtpserveroption = ceng_argor +[color] + ui = true +[color "diff-highlight"] + oldNormal = red bold + oldHighlight = red bold 52 + newNormal = green bold + newHighlight = green bold 22 +[color "diff"] + meta = yellow + frag = magenta bold + commit = yellow bold + old = red bold + new = green bold + whitespace = red reverse +[difftool] + prompt = false +[difftool "difftastic"] + cmd = difft "$LOCAL" "$REMOTE" +[pager] + difftool = true + diff = delta + log = delta + reflog = delta + show = delta +[interactive] + diffFilter = delta --color-only --features=interactive +[delta] + features = line-numbers decorations side-by-side + plus-style = syntax "#003800" + minus-style = syntax "#3f0001" +[delta "decorations"] + commit-decoration-style = bold yellow box ul + file-style = bold yellow ul + file-decoration-style = none + hunk-header-decoration-style = cyan box ul +[delta "line-numbers"] + line-numbers-left-style = cyan + line-numbers-right-style = cyan + line-numbers-minus-style = 124 + line-numbers-plus-style = 28 +[credential "https://git.overleaf.com"] + helper = !pass overleaf/git diff --git a/.config/git/ignore b/.config/git/ignore new file mode 100644 index 0000000..116f8e7 --- /dev/null +++ b/.config/git/ignore @@ -0,0 +1,5 @@ +.DS_Store +.idea +tags +rusty-tags.vi +*.svg -- cgit v1.2.3-70-g09d2