Created
October 5, 2011 15:48
-
-
Save oisin/1264779 to your computer and use it in GitHub Desktop.
Sample git config with aliases and log formatting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Your Name Here | |
email = Your Name Here | |
[diff] | |
[color] | |
ui = auto | |
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
di = diff | |
dc = diff --cached | |
amend = commit --amend | |
aa = add --all | |
head = !git l -1 | |
h = !git head | |
r = !git --no-pager l -20 | |
ra = !git r --all | |
ff = merge --ff-only | |
pullff = pull --ff-only | |
noff = merge --no-ff | |
l = log --graph --abbrev-commit --date=relative | |
la = !git l --all | |
div = divergence | |
gn = goodness | |
gnc = goodness --cached | |
fa = fetch --all | |
pom = push origin master | |
b = branch | |
[format] | |
pretty=format:%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset | |
[merge] | |
tool = vimdiff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment