Skip to content

Instantly share code, notes, and snippets.

@mathieugagne
Created June 3, 2013 14:00
Show Gist options
  • Save mathieugagne/5698336 to your computer and use it in GitHub Desktop.
Save mathieugagne/5698336 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Mathieu Gagné
email = [email protected]
[diff]
[color]
ui = auto
[alias]
st = status
ci = commit
co = checkout
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all
ff = merge --ff-only
pullff = pull --ff-only
noff = merge --no-ff
fa = fetch --all
pom = push origin master
b = branch
ds = diff --stat=160,120
dh1 = diff HEAD~1
# Divergence (commits we added and commits remote added)
div = divergence
# Goodness (summary of diff lines added/removed/total)
gn = goodness
gnc = goodness --cached
# Fancy logging.
# h = head
# hp = head with patch
# r = recent commits, only current branch
# ra = recent commits, all reachable refs
# l = all commits, only current branch
# la = all commits, all reachable refs
head = !git l -1
h = !git head
hp = "!. ~/.githelpers && show_git_head"
r = !git l -30
ra = !git r --all
l = "!. ~/.githelpers && pretty_git_log"
la = !git l --all
[merge]
tool = vimdiff
[push]
default = matching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment