Created
November 21, 2019 10:23
-
-
Save bibarsov/a15d4ebe4e33f38b9c33e73020844cc9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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