Skip to content

Instantly share code, notes, and snippets.

@dingo-d
Last active September 30, 2019 11:58
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 dingo-d/d1caa204a84e3e342e4b7cdaac65f8e3 to your computer and use it in GitHub Desktop.
Save dingo-d/d1caa204a84e3e342e4b7cdaac65f8e3 to your computer and use it in GitHub Desktop.
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 // can be code, atom, pstorm, nano, vi...
[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 // https://github.com/so-fancy/diff-so-fancy
[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
[commit]
gpgsign = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment