Last active
February 20, 2024 22:19
-
-
Save ivan/2165625e16de427e6e1d2a3c7c58e6b3 to your computer and use it in GitHub Desktop.
~/.config/git/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[url "[email protected]:"] | |
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://jvns.ca/blog/2024/02/16/popular-git-config-options/