Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Bypass some limitations on getting origin HEAD
- # by parsing each branch individually.
- # Get all origin branchs
- ORIGINS=$(git ls-remote --heads origin | tr '\/' ' ' | tr -s ' ' | cut -d' ' -f3)
- for branch in $ORIGINS
- do
- git fetch origin $branch -p
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement