Skip to content

Instantly share code, notes, and snippets.

@tswicegood
Last active August 4, 2020 16:42
Couple of my favorite git aliases
[alias]
st = status
di = diff
staged = "diff --staged"
amend = "commit --amend"
delete-merged = "!git branch --merged | egrep -v '^\\*' | xargs git branch -d"
pad = "!git pull ${1:-origin} --prune && git delete-merged"
fad = "!git fetch ${1:-origin} --prune && git delete-merged"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment