Last active
August 4, 2020 16:42
-
-
Save tswicegood/cd5495fd1e7b3e7efb8ea3b5c9c6610c to your computer and use it in GitHub Desktop.
Couple of my favorite git aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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