Created
May 2, 2014 23:44
-
-
Save joshuap/b98e6767c4d2594265b1 to your computer and use it in GitHub Desktop.
Josh's .gitconfig
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
[core] | |
excludesfile = ~/.gitignore | |
editor = mate -w | |
whitespace = trailing-space,space-before-tab | |
[apply] | |
whitespace = fix | |
[color] | |
ui = true ;doesnt work for some reason ... | |
interactive = true | |
status = true | |
branch = true | |
diff = true | |
[help] | |
autocorrect = 1 | |
[status] | |
submodule = 1 | |
[push] | |
# Only push branches that have been set up to track a remote branch. | |
default = current | |
[alias] | |
st = status | |
ci = commit | |
co = checkout | |
br = branch | |
ls = branch | |
s = status | |
a = add | |
b = branch | |
d = diff | |
dc = diff --cached | |
ap = add -p | |
v = show | |
l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset' | |
ll = log | |
lol = log --pretty=oneline --abbrev-commit --graph --decorate | |
cp = cherry-pick | |
c = checkout | |
cc = commit | |
ca = commit --amend | |
ri = rebase -i HEAD~10 | |
sh = !git-sh | |
ro = !git fetch origin && git reset --hard origin/master | |
unstage = reset HEAD | |
track = checkout -t | |
wl = !export WL_HEAD=`git rev-parse --show-toplevel`/.git/WL_HEAD && touch $WL_HEAD && git log --oneline --since='1 day ago' `cat $WL_HEAD`..HEAD | awk '{ printf \"%s, \", $0 }' | pbcopy && echo `git log -n1 --pretty=format:'%H'` > $WL_HEAD | |
[user] | |
email = | |
name = | |
[github] | |
user = | |
token = | |
[credential] | |
helper = osxkeychain | |
[branch] | |
autosetuprebase = always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment