Skip to content

Instantly share code, notes, and snippets.

[alias]
### Informational aliases ###
# shows all origin branches
origin = remote show origin
# shows current branch
current = symbolic-ref --short HEAD
# updates refs and shows status
s = !git remote -v update && git status
# compare with local branch before push
bp = !brnch=$(git current) && git diff --stat --cached origin/$brnch