Skip to content

Instantly share code, notes, and snippets.

@morinb
morinb / Git aliases
Last active April 1, 2021 13:15
Git aliases
# Git aliases
alias.co checkout
alias.st status
alias.ls log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate
alias.lg log --graph --abbrev-commit --decorate --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)'
alias.aliases config --get-regexp alias
alias.incoming !git log ..origin/"$(git branch --show-current)"
alias.outgoing !git log origin/"$(git branch --show-current)"..
alias.bs branch-status