Skip to content

Instantly share code, notes, and snippets.

@krystofwoldrich
Created January 23, 2023 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krystofwoldrich/191db0c27d63df5460fa30d302835db4 to your computer and use it in GitHub Desktop.
Save krystofwoldrich/191db0c27d63df5460fa30d302835db4 to your computer and use it in GitHub Desktop.
Handy git aliases
alias git_delete_no_upstream="git branch --format "%(refname:short) %(upstream)" | awk '{if (!$2) print $1;}' | xargs git branch -D"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment