Using bash:
for remote in `git branch -r `; do b=`echo $remote | awk '{print substr($0, 8, length($0)-2)}'` ; git checkout $b;git pull; done
Using bash:
for remote in `git branch -r `; do b=`echo $remote | awk '{print substr($0, 8, length($0)-2)}'` ; git checkout $b;git pull; done