Skip to content

Instantly share code, notes, and snippets.

@johandam
Last active January 14, 2016 08:58
Show Gist options
  • Save johandam/387b5be7618e57198c03 to your computer and use it in GitHub Desktop.
Save johandam/387b5be7618e57198c03 to your computer and use it in GitHub Desktop.
[alias]
co = checkout
st = status
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend
uncommit = reset --soft HEAD^
graph = 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
cam = commit -am
list =-alias config --get-regexp alias
pr = pull --rebase
pf = pull --ff-only
files = diff --name-only
prp = !git pull --rebase && git push
hide = update-index --assume-unchanged
unhide = update-index --no-assume-unchanged
hidden = ls-files -v | grep '^[[:lower:]]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment