Created
June 10, 2014 21:11
-
-
Save jszwedko/7e2401a25dc52dd521f1 to your computer and use it in GitHub Desktop.
.gitconfig
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
[core] | |
excludesfile = ~/.git-excludes | |
[autosetup] | |
rebase = true | |
[branch] | |
autosetuprebase = remote | |
autosetupmerge = true | |
mergeoptions = --no-commit --no-ff | |
[color] | |
branch = auto | |
diff = auto | |
interactive = auto | |
status = auto | |
ui = true | |
[push] | |
default = current | |
[alias] | |
br = branch | |
bra = branch -a | |
ci = commit | |
co = checkout | |
cp = cherry-pick | |
dc = diff --cached | |
dci = duet-commit | |
di = diff | |
g = log --pretty=format:\"%h %an - %s\" --graph | |
gg = log --pretty=format:\"%H %an - %s\" --graph | |
lc = log ORIG_HEAD.. --stat --no-merges | |
lg = log --oneline | |
ll = log --pretty=format:'%Cred%h %Cblue%an %Cgreen%s / %Cblue%ar%Creset' --abbrev-commit -n15 | |
pr = pull --rebase | |
st = status | |
s = status --short | |
w = whatchanged | |
pull-ff = pull --ff-only | |
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; gvim `f`" | |
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`" | |
down = !sh -c 'CURRENT=$(git symbolic-ref HEAD | sed -e s@.*/@@) \ | |
&& (git pull --ff-only || (git fetch origin && git rebase --preserve-merges origin/$CURRENT))' | |
publish = "!f() { if [ $# -ne 1 ]; then echo 'usage: git publish <local-branch-name>' >&2; exit 1; fi; git push --set-upstream origin $1:$1; }; f" | |
unpublish = "!f() { if [ $# -ne 1 ]; then echo 'usage: git unpublish <remote-branch-name>' >&2; exit 1; fi; git push origin :$1; }; f" | |
[include] | |
path = ~/.gitconfig.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment