Instantly share code, notes, and snippets.

@dingo-d /gitconfig
Last active Feb 1, 2019

Embed
What would you like to do?
An example of gitconfig
[user]
email = // email
name = // name
username = // username
signingkey = // your sign in key
[help]
autocorrect = 0
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = 'sublime' --wait
[core]
editor = sublime --wait
excludesfile = $HOME/.gitignore_global // $HOME should be full path of gitignore file
ignorecase = false
pager = diff-so-fancy | less --tabs=4 -RFX
[push]
default = current
[alias]
aa = add
st = status
co = checkout
ci = commit
cl = clone
ps = push
br = branch
pl = pull
t = tag
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[gpg]
program = gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment