phortonssf
5/14/2019 - 11:59 PM

pull all remote branches and create local branch

pull all remote branches and create local branch

#!/bin/bash

for b in `git branch -r | grep -v -- '->'`;
  do 
    git branch --track ${b##origin/} $b; 
  done