Created
August 6, 2014 16:28
-
-
Save nabinno/a05e34c0779bee7bfad6 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
[core] | |
excludesfile = ~/.gitignore_global | |
[alias] | |
# export to $1 which is supposed to be a dirname (it does the same as copying repo and removing .git) | |
aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /' | |
ammend = commit --amend | |
a = add -v | |
b = branch | |
br = branch | |
branches = branch -a | |
brs = branch -a | |
cd = !bash -c 'while ! -d .git; do cd ..; done' | |
ci = commit -v | |
c = commit -a -m | |
ca = commit -a -m | |
co = checkout | |
d = rm | |
del = rm | |
delete-branch = !git branch -D | |
delete-remote-branch = "!sh -c \"git push origin --delete $1\"" | |
df = diff HEAD^ | |
dfc = diff --cached | |
export = "!sh -c 'git checkout-index -a -f --prefix=$1/' -" | |
hist = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | |
# hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short | |
last-commit-diff = diff HEAD^ | |
# last = 'cat-file commit HEAD' | |
last = diff HEAD~1..HEAD | |
lf = log --decorate=full --graph --pretty=full | |
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | |
pick = cherry-pick | |
pr = pull --rebase | |
search = "!sh -c 'git rev-list --all | grep ^$1 | while read commit; do git --no-pager log -n1 --pretty=format:\"%H %ci %an %s%n\" $commit; done' -" | |
slog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
s = status -sb | |
st = status -sb | |
switch = checkout | |
vlog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen - %cD (%cr) %C(bold blue)<%an>%Creset%n' --abbrev-commit --date=relative -p | |
who = shortlog -s -- | |
[color] | |
branch = auto | |
diff = auto | |
interactive = auto | |
status = auto | |
ui = true | |
blame = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold | |
new = green bold | |
[color "status"] | |
added = yellow | |
changed = green | |
untracked = cyan | |
[apply] | |
whitespace = nowarn | |
[branch] | |
autosetuprebase = always | |
autosetupmerge = always | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment