Skip to content

Instantly share code, notes, and snippets.

@dhrrgn
Last active September 25, 2015 14:38
Show Gist options
  • Save dhrrgn/937320 to your computer and use it in GitHub Desktop.
Save dhrrgn/937320 to your computer and use it in GitHub Desktop.
An awesome .gitconfig file with some niceties.
[user]
name = Your Name
email = [email protected]
[core]
autocrlf = input
[color]
status = auto
diff = auto
branch = auto
[alias]
st = status
ci = commit
co = checkout
cm = commit -m
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
[merge]
tool = opendiff
@ericlbarnes
Copy link

Here is what I have for colors:

[color]
diff = auto
status = auto
branch = 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]
editor = mate -w

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment