Created
August 13, 2014 15:26
-
-
Save quodlibetor/c1217caf769eb71630d3 to your computer and use it in GitHub Desktop.
git config
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 = | |
email = | |
[alias] | |
st = status | |
sb = status --short --branch | |
s = status --short | |
ci = commit | |
co = checkout | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
lga = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --branches=* --remotes=* | |
lgs = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative -15 | |
lgsa = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative -15 --branches=* --remotes=* | |
branchtree = log --branches=* --graph --decorate --oneline --simplify-by-decoration | |
ix = diff --cached | |
stash-unapply = !git stash show -p | git apply --reverse | |
root = !pwd | |
dcommit = svn dcommit | |
fmerge = merge --ff-only | |
update = !git push origin :refs/heads/dummy && git fetch | |
svnversion = !"git svn find-rev $( git rev-parse trunk )" | |
find = !git rev-list --all --abbrev-commit | xargs git grep -F | |
commit-files = diff-tree --no-commit-id --name-only -r | |
fixws = !"\ | |
if (! git diff-files --quiet .) && \ | |
(! git diff-index --quiet --cached HEAD) ; then \ | |
git commit -m FIXWS_SAVE_INDEX && \ | |
git stash save FIXWS_SAVE_TREE && \ | |
git rebase --whitespace=fix HEAD~ && \ | |
git reset --soft HEAD~ && \ | |
git stash pop ; \ | |
elif (! git diff-index --quiet --cached HEAD) ; then \ | |
git commit -m FIXWS_SAVE_INDEX && \ | |
git rebase --whitespace=fix HEAD~ && \ | |
git reset --soft HEAD~ ; \ | |
fi" | |
who = shortlog -s -- | |
[color] | |
ui = true | |
[color "status"] | |
added = green | |
changed = yellow | |
untracked = red | |
[help] | |
autocorrect = 1 | |
[core] | |
editor = vim | |
excludesfile = /home/bwm/.gitignore | |
pager = less -FRXS | |
[svn] | |
rmdir = true | |
[push] | |
# requires git > 1.8.0 | |
default = simple | |
[fetch] | |
prune = true | |
[diff] | |
tool = meld | |
[grep] | |
patternType = perl | |
[rebase] | |
autosquash = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment