Skip to content

Instantly share code, notes, and snippets.

@leachdaniel
Last active March 24, 2021 13:08
Show Gist options
  • Save leachdaniel/382f102c7959a5f58db8ca01fa6b2e87 to your computer and use it in GitHub Desktop.
Save leachdaniel/382f102c7959a5f58db8ca01fa6b2e87 to your computer and use it in GitHub Desktop.
git aliases
[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