Skip to content

Instantly share code, notes, and snippets.

@tabrez
Created April 8, 2022 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tabrez/73446db8b9d562d2bdcf9d47d2adedc9 to your computer and use it in GitHub Desktop.
Save tabrez/73446db8b9d562d2bdcf9d47d2adedc9 to your computer and use it in GitHub Desktop.
Minimal git configuration
[user]
name = "Tabrez Iqbal"
email = "tabrez@mailbox.org"
[color]
ui = true
[color "branch"]
current = green bold
local = yellow bold
remote = green bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[core]
editor = code --wait
excludesfile = ~/.gitignore_global
autocrlf = input
[commit]
verbose = true
[grep]
linenumber = true
[fetch]
prune = true
[diff]
tool = vscode
# Git diff will use (i)ndex, (w)ork tree, (c)ommit and (o)bject
# instead of a/b/c/d as prefixes for patches
mnemonicprefix = true
[merge]
keepBackup = false
tool = vscode
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[mergetool "vscode"]
cmd = code --wait $MERGED
keepTemporaries = false
trustExitCode = false
keepBackup = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment