Skip to content

Instantly share code, notes, and snippets.

@b-durand
Created August 7, 2012 17:56
Show Gist options
  • Save b-durand/3287832 to your computer and use it in GitHub Desktop.
Save b-durand/3287832 to your computer and use it in GitHub Desktop.
Git config
[user]
name = John Doe
email = j.doe@github.com
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[alias]
slog = log --pretty=format:'%Creset%C(red bold)[%ad] %C(blue bold)%h %Creset%C(magenta bold)%d %Creset%s %C(green bold)(%an)%Creset' --abbrev-commit --date=short
glog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
who = shortlog -s --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment