Created
April 13, 2015 15:57
-
-
Save kingbin/87fb70e3aba6230a573b to your computer and use it in GitHub Desktop.
Git Config Playground
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 = Chris Blazek | |
email = [email protected] | |
[color] | |
status = auto | |
branch = auto | |
diff = auto | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
whitespace = red reverse | |
[color "status"] | |
added = yellow | |
changed = green | |
untracked = cyan | |
[merge] | |
tool = opendiff | |
[core] | |
excludesfile = /Users/north/.gitignore | |
whitespace=fix,tab-in-indent,trailing-space,cr-at-eol | |
autocrlf = input | |
safecrlf = warn | |
#editor = mate -w | |
[alias] | |
log = log --graph | |
logp = log -p --graph | |
logs = log --stat --graph | |
what = whatchanged | |
mom = merge origin/master | |
stat = status | |
st = status | |
ci = commit | |
co = checkout | |
br = branch | |
ft = svn fetch | |
up = svn rebase | |
dco = svn dcommit | |
df = diff | |
lg = log --pretty=oneline --all --graph --abbrev-commit --decorate | |
ll = log --raw | |
lo = log --pretty=oneline --graph | |
fa = fetch --all | |
rl = rev-list --pretty=oneline --all --graph --abbrev-commit -n 100 | |
#open a github url for the current git repo | |
hub = !git remote -v|sed "'s|.*git | |
[:@]\\(.*\\).git.*|http://\\1|;s|m:|m/|'"|uniq|xargs open | |
chop = !zsh -c "CB=$(git branch | grep '\\*') && CB=${CB | |
[3,-1]} && [ $CB != \"(no branch)\" ] && git checkout --detach ${1:-\"HEAD\"} && git branch -d ${CB}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment