Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #INSTRUCTIONS:
- # 1. Checkout out project
- # 2. vim checkout-all-branches.sh
- # 3. chmod +x checkout-all-branches.sh
- # 4. ./checkout-all-branches
- # 5. Stay cool, watch the brnaches be tracked
- # 6. rm checkout-all-branches.sh
- #Whenever you clone a repo, you do not clone all of its branches by default.
- #If you wish to do so, use the following script:
- for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do
- git branch --track ${branch#remotes/origin/} $branch
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement