Skip to content

Instantly share code, notes, and snippets.

@jbonney
Created November 12, 2012 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jbonney/4060732 to your computer and use it in GitHub Desktop.
Save jbonney/4060732 to your computer and use it in GitHub Desktop.
Git configuration file
[user]
name = Your Name
email = ...@email.com
[alias]
ls = ls-files
co = checkout
ci = commit
br = branch
df = diff
dc = diff --cached
dm = diff | mate
lg = log -p
gl = git pull
gp = git push
st = status
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
tree = log --graph --simplify-by-decoration --pretty=format:'%d' --all
# Show files ignored by git:
ign = ls-files -o -i --exclude-standard
sync = remote prune origin
[apply]
whitespace = nowarn
[color]
ui = auto
[color "branch"]
current = green
local = normal
remote = red
plain = normal
[color "diff"]
plain = normal
meta = bold
frag = cyan bold
old = red bold
new = green bold
commit = yellow
[color "status"]
header = normal
added = blue
updated = green
changed = yellow
untracked = cyan
nobranch = red
[diff]
external = git-diff-meld
[branch]
autosetupmerge = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment