Last active
March 24, 2021 13:08
-
-
Save leachdaniel/382f102c7959a5f58db8ca01fa6b2e87 to your computer and use it in GitHub Desktop.
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] | |
# command git config --global alias.logo 'log --oneline' | |
logo = log --oneline | |
iwdf = diff --ignore-space-change --ignore-all-space --ignore-space-at-eol --ignore-blank-lines | |
iwd = diff --ignore-space-at-eol -b -w --ignore-blank-lines | |
# clean up branches based on remote status - powershell version | |
branch-prune = "!git fetch -p && for b in $(git for-each-ref --format='%(if:equals=[gone])%(upstream:track)%(then)%(refname:short)%(end)' refs/heads); do git branch -d $b; done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment