Skip to content

Instantly share code, notes, and snippets.

@fschaper
Created January 9, 2015 16:11
Show Gist options
  • Select an option

  • Save fschaper/557e39ff74d5faef8250 to your computer and use it in GitHub Desktop.

Select an option

Save fschaper/557e39ff74d5faef8250 to your computer and use it in GitHub Desktop.
[alias]
show-rev-number = !sh -c 'git rev-list --reverse HEAD | nl | awk \"{ if(\\$1 == "$0") { print \\$2 }}\"'
ds = diff --staged
st = status -sb
amend = commit --amend -C HEAD
undo = reset --soft HEAD^
ls = log --pretty=format:\"%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]\" --decorate --date=short
daily = log --since '1 day ago' --oneline --author florian.schaper@hmmh.de
graph = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment