Created
July 25, 2018 02:53
-
-
Save kittinunf/2e85bb967d426ec409e16c1b04df6d54 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
REMOTE_NAME=xxxxx | |
git branch -r | grep "${REMOTE_NAME}/" | grep -v 'master$' | grep -v HEAD | sed -E "s/^[[:space:]]*${REMOTE_NAME}\///g" | while read line; do git push $REMOTE_NAME :heads/$line; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment