Skip to content

Instantly share code, notes, and snippets.

@rafakato
Forked from pedronsouza/gist:8456981
Created February 1, 2014 00:53
Show Gist options
  • Save rafakato/8746377 to your computer and use it in GitHub Desktop.
Save rafakato/8746377 to your computer and use it in GitHub Desktop.
[user]
name = <seu_nome>
email = <seu_email>
[color]
ui = 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
[alias]
freebase = pull --rebase
commit = commit -a -v
ci = commit
co = checkout
b = branch
nb = checkout -b
stat = status
st = status
sl = stash list
sa = stash apply
sd = stash drop
quicklog = log --pretty=format:'%Cblue%h %Cred%cD %Creset%cn %Cgreen%s%Creset' --date-order --graph
changes = log --oneline --decorate
changelog = show --name-only
svnup = svn rebase
svnpush = svn dcommit
commitnumber = !git log --pretty=oneline | wc -l
diffmate = !sh -c 'git diff HEAD $1 | mate -' -
difffile = !sh -c 'git diff HEAD $1 | mate -' -
diffile = !sh -c 'git diff HEAD $1 | mate -' -
difile = !sh -c 'git diff HEAD $1 | mate -' -
worddiff = diff --word-diff
fakeignore = update-index --assume-unchanged
ignore = update-index --assume-unchanged
undo = reset --soft --keep HEAD^
unstage = reset HEAD
first = !sh -c 'git log origin/master --pretty=format:%H --reverse | head -1'
lasttag = !sh -c 'git log --simplify-by-decoration --decorate=short --tags --format="%H" |head -1'
wtf = !git-wtf
has = branch --contains
db = !sh -c 'git branch -D $1 && git push origin :$1' -
sweep = !sh -c 'git-sweep cleanup'
ph = log --graph --pretty=pretty-history --abbrev-commit --date=relative
permission-reset = "git clone git://github.com/balupton/history.js.git help config diff -p | grep -E '^(diff|old mode|new mode)' | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' | git apply"
username = config --get user.name
standup = !sh -c 'git log --pretty=format:\"%Cred%h%Creset - %Cgreen%cr%Creset : %s\" --since=\"`date -v-1d \"+%Y-%m-%d 00:00:00\"`\" --until=\"`date \"+%Y-%m-%d 00:00:00\"`\" --all --author=\"`git config --get user.name`\"'
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment