Created
May 13, 2013 13:01
-
-
Save blacktaxi/5568158 to your computer and use it in GitHub Desktop.
My .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
[color] | |
ui = true | |
[format] | |
pretty = oneline | |
[core] | |
autocrlf = true | |
[alias] | |
# basic stuff | |
st = status -s | |
s = status -s | |
co = checkout | |
ci = commit | |
cia = commit --amend | |
p = pull | |
pr = pull --rebase | |
a = add | |
ap = add -p | |
br = branch | |
b = branch | |
cp = cherry-pick | |
f = fetch | |
# logs | |
l = log --graph --pretty=format:"%C(yellow)%h\\ %C(cyan)%ad%C(yellow)%d\\ %C(reset)%s\\ %C(green)[%cn]" --decorate --date=short | |
lf = log --graph --pretty=format:"%C(yellow)%h\\ %C(cyan)%ad%C(yellow)%d\\ %C(reset)%s\\ %C(green)[%cn]" --decorate --date=short --follow # see changes through branches | |
ll = log --graph --pretty=format:"%C(yellow)%h\\ %C(cyan)%ad%C(yellow)%d\\ %C(reset)%s\\ %C(green)[%cn]" --decorate --date=short --numstat | |
la = log --graph --pretty=format:"%C(yellow)%h\\ %C(cyan)%ad%C(yellow)%d\\ %C(reset)%s\\ %C(green)[%cn]" --decorate --date=short --all | |
l- = log --graph --pretty=format:"%C(yellow)%h\\ %C(cyan)%ad%C(yellow)%d\\ %C(reset)%s\\ %C(green)[%cn]" --decorate --date=short --all --simplify-by-decoration | |
last = log -1 HEAD | |
bl = blame -w | |
lho = log --graph --pretty=format:"%C(yellow)%h\\ %C(cyan)%ad%C(yellow)%d\\ %C(reset)%s\\ %C(green)[%cn]" --decorate --date=short HEAD..origin | |
s = show --pretty=format:"%C(yellow)%h\\ %C(cyan)%ad%C(yellow)%d\\ %C(reset)%s\\ %C(green)[%cn]" --decorate --date=short | |
conflicts = diff --name-only --diff-filter=U | |
dc = diff --cached # see staged changes | |
d = diff | |
rh = reset HEAD | |
rhh = reset --hard HEAD | |
uncommit = reset --soft HEAD~1 # undo last commit | |
unstage = reset | |
dumpstash = stash apply | |
stashstaged = stash save --keep-index |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment