Last active
June 27, 2018 03:59
-
-
Save hikerpig/2dbd89dfb338138a81f1e94dcb2636d6 to your computer and use it in GitHub Desktop.
Git snippets #tags:bash
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
#!/usr/bin/env bash | |
cat remote_branches.txt | xargs -I 'Branch' git push origin :Branch |
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
#!/usr/bin/env bash | |
git remote show origin > remote_origin.txt | |
grep tracked remote_origin.txt | awk '{print $1}' > remote_branches.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment