for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done
Source : How to fetch all Git branches
for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done
Source : How to fetch all Git branches