Skip to content

Instantly share code, notes, and snippets.

@ryo-ARAKI
Last active February 24, 2025 07:17
Show Gist options
  • Save ryo-ARAKI/578c36fa78ee5e148d7452dcb12fbb3b to your computer and use it in GitHub Desktop.
Save ryo-ARAKI/578c36fa78ee5e148d7452dcb12fbb3b to your computer and use it in GitHub Desktop.
Git configuration file
[user]
email = your email address
name = your GitHub username
[core]
editor = vim
pager = delta
autocrlf = input
quotepath = false
[color]
ui = true
[pull]
ff = only # enable fast-forward and not creating merge commit
[push]
default = current
[init]
defaultBranch = main
[fetch]
prune = true
[merge]
conflictstyle = diff3 # customised merge conflict output
[credential]
helper = cache # omit entering password
# delta configurations
[delta]
features = unobtrusive-line-numbers decorations
syntax-theme = Dracula
navigate = true # use n/N to move back/forward between diff sections
[delta "unobtrusive-line-numbers"]
line-numbers = true
line-numbers-zero-style = "#444444"
line-numbers-left-format = "{nm:>5}"
line-numbers-right-format = "{np:>5}│"
[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment