I have a master and a development branch, both pushed to GitHub. I\'ve cloned, pulled, and fetched, but I re
master
development
clone
pull
fetch
#!/bin/bash for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do git branch --track ${branch#remotes/origin/} $branch done
These code will pull all remote branches code to local repo.