Skip to content

Instantly share code, notes, and snippets.

@tswicegood
Last active August 4, 2020 16:42
Show Gist options
  • Save tswicegood/cd5495fd1e7b3e7efb8ea3b5c9c6610c to your computer and use it in GitHub Desktop.
Save tswicegood/cd5495fd1e7b3e7efb8ea3b5c9c6610c to your computer and use it in GitHub Desktop.
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