Created
December 5, 2012 09:08
-
-
Save joren/4214088 to your computer and use it in GitHub Desktop.
git configs
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
# ~/.gitconfig | |
[user] | |
name = Joren | |
email = git@jorendegroof.be | |
[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 = vim | |
[branch] | |
autosetuprebase = always | |
# ~/.githelpers && pretty_git_log | |
#!/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