Created
March 22, 2024 12:58
-
-
Save samuelbezerrab/ade61a33cde69c9f0f5ea62b08bebbfe to your computer and use it in GitHub Desktop.
Checkout all git remote branches
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
#!/bin/bash | |
for branch in `git branch -r | grep -v HEAD`;do | |
git checkout -b $branch $branch | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To run directly, use: