Created
April 2, 2012 22:42
-
-
Save subhaze/2287729 to your computer and use it in GitHub Desktop.
current gitconfig setup that I've pieced together with personal stuff and things found on teh internets
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
[color] | |
# turn on color | |
diff = auto | |
status = auto | |
branch = auto | |
interactive = auto | |
ui = auto | |
[color "branch"] | |
current = green bold | |
local = green | |
remote = red bold | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[color "status"] | |
added = green bold | |
changed = yellow bold | |
untracked = red | |
[color "sh"] | |
branch = yellow | |
[alias] | |
st = status | |
ci = commit | |
br = branch | |
bra = branch -a | |
co = checkout | |
df = diff | |
lg = log --pretty=format:'%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s' | |
lgstat = log --pretty=format:'%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s' --stat | |
lgdif = log --pretty=format:'%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s' -p | |
lggraph = log --pretty=format:'%Cred%h%Creset <%Cblue%an%Creset> %s' --graph | |
lgorder = log --pretty=format:'%Cred%h%Creset <%Cblue%an%Creset> %s' --date-order --graph | |
lgby = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s\" --author=$1' -" | |
lgfind = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s\" --grep=$1' -" | |
lgbefore = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s\" --before='$1'' -" | |
lgafter = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s\" --after='$1'' -" | |
lgbetween = "!sh -c 'git log --pretty=format:\"%Cred%h%Creset <%Cblue%an%Creset> %C(yellow)%ar%Creset: %s\" --after=\"$1\" --before=\"$2\"' -" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment