Skip to content

Instantly share code, notes, and snippets.

@palaniraja
Last active March 18, 2025 01:18
Show Gist options
  • Save palaniraja/fe7383c7b1549407318f15aa54171dda to your computer and use it in GitHub Desktop.
Save palaniraja/fe7383c7b1549407318f15aa54171dda to your computer and use it in GitHub Desktop.
~/.gitconfig
[user]
name =
email =
[includeIf "gitdir:~/Desktop/src/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/Desktop/src/try/"]
path = ~/.gitconfig-personal
[init]
defaultBranch = main
[core]
# pager = diff-so-fancy | less --tabs=4 -RFX
quotepath = false
pager = delta --diff-so-fancy -n --syntax-theme "Nord"
[delta]
navigate = true # use n and N to move between diff sections
# dark = true # or light = true, or omit for auto-detection
features = everforest-friendly
[pager]
diff = delta --diff-so-fancy --tabs=4
log = delta
reflog = delta
show = delta
[delta "everforest-friendly"]
minus-emph-style = "syntax #6A001B" # #e25c5c #7E0020
minus-style = "normal #514045" # #8b1616 #653535
plus-emph-style = "syntax #006A4F" # #007e5e
plus-style = "syntax #425047" # #015742
[diff]
# ignoreAllSpace = true
# algorithm = minimal
algorithm = histogram # patience|minimal|histogram|myers
colorMoved = plain
tool = vscode
prompt = false
mnemonicPrefix = true
renames = true
pager = delta --diff-so-fancy -n
[branch]
sort = -committerdate
[tag]
sort = version:refname
[push]
default = simple
autoSetupRemote = true
followTags = true
[interactive]
# diffFilter = diff-so-fancy --patch
diffFilter = delta --diff-so-fancy -n # --color-only
[difftool]
prompt = false
[rerere]
enabled = true
autoupdate = true
[merge]
conflictStyle = zdiff3
## go env GOPRIVATE
[url "[email protected]:ORGNAME"]
insteadOf = "https://bitbucket.org/ORGNAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment