Skip to content

Instantly share code, notes, and snippets.

@pgmot
Created November 5, 2015 01:41
Show Gist options
  • Save pgmot/837497017e223f026390 to your computer and use it in GitHub Desktop.
Save pgmot/837497017e223f026390 to your computer and use it in GitHub Desktop.
git alias
[alias]
graph = log --graph --branches --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
st = status
gr = log --graph --branches --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
cm = commit
co = checkout
br = branch
remote-br = branch -r
delete-merged-branches = !git branch --merged | grep -v \\* | xargs -I % git branch -d %
gl = log --pretty='medium-reverse' --graph --name-status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment