Skip to content

Instantly share code, notes, and snippets.

@ivan
Last active February 20, 2024 22:19
Show Gist options
  • Save ivan/2165625e16de427e6e1d2a3c7c58e6b3 to your computer and use it in GitHub Desktop.
Save ivan/2165625e16de427e6e1d2a3c7c58e6b3 to your computer and use it in GitHub Desktop.
~/.config/git/config
[url "git@github.com:"]
# GitHub resets slower connections while cloning over HTTPS; only SSH is reliable now.
insteadOf = "https://github.com/"
[core]
# Don't hang forever when we `git fetch` a repo that's been deleted
askPass = /run/current-system/sw/bin/true
pager = less --tabs=4 -RFX
[log]
# "display dates as 2023-05-25 13:54:51 instead of Thu May 25 13:54:51 2023"
date = iso
[commit]
# "so that you can write #include in a commit message without the # being treated as a comment and removed"
cleanup = scissors
# Show diff of commit in editor when using 'git commit'
verbose = true
[diff]
algorithm = histogram
[branch]
autoSetupRebase = always
[merge]
conflictStyle = zdiff3
[tig]
wrap-lines = true
ignore-case = true
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = white bold 52
newNormal = green bold
newHighlight = white bold 22
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[tag]
sort = version:refname
[init]
defaultBranch = master
[rerere]
enabled = true
@ivan
Copy link
Author

ivan commented Feb 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment