Last active
August 29, 2015 14:00
-
-
Save emilisto/11394993 to your computer and use it in GitHub Desktop.
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
[user] | |
name = Emil Stenqvist | |
email = [email protected] | |
[branch] | |
autosetuprebase = always | |
[color] | |
diff = auto | |
status = auto | |
branch = auto | |
[rebase] | |
stat = true | |
[alias] | |
co = checkout | |
cm = commit | |
s = status | |
ba = branch -a | |
d = diff | |
p = pull | |
; l = log --graph --pretty=format:'%C(yellow)%h %Cgreen%ae%Creset (%ar): %s' | |
l = log --graph --decorate --pretty=oneline --abbrev-commit | |
; All branches | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
; From https://gist.github.com/492227 | |
wip = !"git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m \"wip\"" | |
unwip = !"git log -n 1 | grep -q -c wip && git reset HEAD~1" | |
rb = !"git wip;git rebase -i origin/master;git unwip" | |
lost = !"git fsck | awk '/dangling commit/ {print $3}' | git show --format='SHA1: %C(yellow)%h%Creset %f' --stdin | awk '/SHA1/ {sub(\"SHA1: \", \"\"); print}'" | |
sc = !"git commit -a -m '...'" | |
m = !"git checkout master" | |
; From https://github.com/alikins/gitconfig/blob/master/gitconfig | |
brlog = "!sh -c 'for C in $(git for-each-ref --sort=committerdate refs/heads --format=\"%(refname:short)\") ; do git show -s --pretty=format:\"%Cgreen%ci %Cblue%cr%Creset $C\" \"$C\" -- ; git show --stat -s $C ; echo; done'" | |
unadd = !"git reset HEAD" | |
switch = !legit switch \"$@\" | |
branches = !legit branches | |
sprout = !legit sprout \"$@\" | |
unpublish = !legit unpublish \"$@\" | |
harvest = !legit harvest \"$@\" | |
sync = !legit sync \"$@\" | |
publish = !legit publish \"$@\" | |
graft = !legit graft \"$@\" | |
[github] | |
username = emilisto | |
user = emilisto | |
[core] | |
excludesfile = /opt/boxen/config/git/gitignore | |
[difftool "sourcetree"] | |
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | |
path = | |
[mergetool "sourcetree"] | |
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" | |
trustExitCode = true | |
[hub] | |
protocol = https | |
[credential] | |
helper = /opt/boxen/bin/boxen-git-credential | |
[core] | |
excludesfile = /opt/boxen/config/git/gitignore | |
[mergetool] | |
keepBackup = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment