Skip to content

Instantly share code, notes, and snippets.

@guma44
Created October 30, 2017 10:20
Show Gist options
  • Save guma44/fd75dcc30bc2cf9f699fd58723272ae6 to your computer and use it in GitHub Desktop.
Save guma44/fd75dcc30bc2cf9f699fd58723272ae6 to your computer and use it in GitHub Desktop.
A config for git
[user]
name = XX
email = [email protected]
[credential]
helper = cache
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
st = status
g = -c color.grep.linenumber=\"bold blue\" -c color.grep.filename=\"bold green\" -c color.grep.match=\"reverse yellow\" grep --break --heading --line-number
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
autocrlf = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment