Skip to content

Instantly share code, notes, and snippets.

@bibarsov
Created November 21, 2019 10:23
Show Gist options
  • Save bibarsov/a15d4ebe4e33f38b9c33e73020844cc9 to your computer and use it in GitHub Desktop.
Save bibarsov/a15d4ebe4e33f38b9c33e73020844cc9 to your computer and use it in GitHub Desktop.
# Delete branches by regex
git branch | grep "<pattern>" | xargs git branch -D
# Always use current branch as the upstream branch (use: git push -u)
git config --global push.default current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment