Last active
August 4, 2020 16:42
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