Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
69 lines (67 sloc) 1.84 KB
[user]
name = Rob O'Dwyer
email = odwyerrob@gmail.com
[core]
autocrlf = input
excludesfile = /Users/rob/.gitignore
trustctime = false
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
# human friendly git aliases
newbranch = !git branch $1 && git checkout $1 || git checkout
branches = branch -a
tags = tag
stashes = stash list
unstash = stash pop
unstage = reset -q HEAD --
discard = checkout --
uncommit = reset --mixed HEAD~
amend = commit --amend
graph = log --graph -10 --branches --remotes --tags --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %cr) %Cred%d' --date-order
# shortcut aliases
co = checkout
logn = log --name-only
ln = log --name-only
logp = log --patch
logtags = log --decorate=full
lp = log --patch
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
history = log --graph --decorate --pretty=oneline --abbrev-commit --all --name-status
untracked = clean -n
d = diff
dc = diff --cached
yesterday = log --since=yesterday
today = log --since=6am
ap = add --patch
cp = !git add --patch && git commit
publish = !git push -u origin $(git rev-parse --abbrev-ref HEAD)
pr = !hub pull-request --browse
g = grep --color=auto
#repush = !git push origin --force-with-lease $(git rev-parse --abbrev-ref HEAD)
[help]
autocorrect = 30
[push]
default = current
[grep]
extendRegexp = true
lineNumber = true
[pull]
rebase = true