Skip to content

Instantly share code, notes, and snippets.

@lorenzo
Created September 1, 2011 12:12
Show Gist options
  • Save lorenzo/1186046 to your computer and use it in GitHub Desktop.
Save lorenzo/1186046 to your computer and use it in GitHub Desktop.
[color]
status = auto
branch = auto
interactive = auto
diff = auto
[instaweb]
httpd = webrick
port = 8000
[git-tmbundle "log"]
limit = 10
[alias]
freebase = pull --rebase
commit = commit -a -v
ci = commit
co = checkout
br = branch
nb = checkout -b
stat = status
sl = stash list
sa = stash apply
sd = stash drop
st = status
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
work = !sh -c 'git log --pretty=format:\"%h - %an, %ar : %s\" --since=\"48 hour\" --author=\"`git config --get user.name`\"'
branches = !sh -c 'for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done'
[diff]
renamelimit = 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment