Last active
December 13, 2015 23:49
-
-
Save marek-saji/4994049 to your computer and use it in GitHub Desktop.
user-wide .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
[user] | |
email = [email protected] | |
name = Marek 'saji' Augustynowicz | |
[color] | |
ui = auto | |
[alias] | |
lg = log --graph --pretty=slim --abbrev-commit --date=relative | |
lgg = !git lg --branches --date-order --date=local | |
wtf = !git-wtf.rb --relations --short | |
mmerge = merge --no-ff --log=9999 --edit --no-commit | |
diffword = diff --word-diff --word-diff-regex='\\w+|[^[:space:]]' | |
diffchar = diff --word-diff --word-diff-regex='.' | |
spacecommit = -c core.whitespace=-trailing-space,-tab-in-indent,-space-before-tab commit | |
whitespacecheckout = "!git status --porcelain | grep '^.M' | cut -b4- | while read file ; do if test -z "$( git diff -w "$file" )"; then git checkout -- "$file" ; fi; done" | |
rebaselocal = "!REMOTE=$( git rev-parse --abbrev-ref HEAD@{u} ) ; if [ -n "$REMOTE" ]; then git rebase -i $REMOTE ; else echo "ERROR: Unable to determine remote branch" ; fi" | |
where = "!bash -c 'git log --branches --grep=\"#$0\\>\" --pretty=format:\"%H %h %s\" | while read rev abbrevrev subject ; do echo $abbrevrev → $subject ; git branch --contains $rev ; done'" | |
[pretty] | |
slim = "%C(red)%h%C(yellow)%d%C(reset) %s %C(green)(%cd) %C(bold blue)<%an>%C(reset)" | |
[web] | |
browser = chromium | |
[browser "xdg-open"] | |
cmd = xdg-open | |
[browser "chromium"] | |
path = /home/saji/local/opt/chromium-dev/chrome-linux/chrome --user-data-dir=/home/saji/.config/chromium-devel | |
[instaweb] | |
local = true | |
httpd = apache2 -f | |
[push] | |
default = tracking | |
[core] | |
pager = less -MFRSX | |
[diff] | |
renames = true | |
[help] | |
autocorrect = 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment