Created
June 12, 2013 13:09
-
-
Save joren/5765089 to your computer and use it in GitHub Desktop.
Git config
This file contains hidden or 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 = Joren De Groof | |
email = [email protected] | |
[alias] | |
co = checkout | |
st = status | |
ci = commit | |
ic = commit | |
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
l = "!source ~/.githelpers && pretty_git_log" | |
la = !git l --all | |
r = !git l -30 | |
ra = !git r --all | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
[core] | |
excludesfile = /Users/joren/.gitignore | |
editor = /usr/local/Cellar/macvim/7.3-66/MacVim.app/Contents/MacOS/Vim | |
[branch] | |
autosetuprebase = always | |
[push] | |
default = matching |
This file contains hidden or 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
#!/bin/bash | |
HASH="%C(yellow)%h%C(reset)" | |
RELATIVE_TIME="%C(green)%ar%C(reset)" | |
AUTHOR="%C(bold blue)%an%C(reset)" | |
REFS="%C(red)%d%C(reset)" | |
SUBJECT="%s" | |
FORMAT="$HASH{$RELATIVE_TIME{$AUTHOR{$REFS $SUBJECT" | |
function pretty_git_log() { | |
git log --graph --pretty="tformat:$FORMAT" $* | | |
column -t -s '{' | | |
less -FXRS | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment