drosofff
9/20/2016 - 7:17 AM

From http://stackoverflow.com/questions/1911109/how-to-clone-a-specific-git-branch Another way to recover a remote branch in local repo

From http://stackoverflow.com/questions/1911109/how-to-clone-a-specific-git-branch Another way to recover a remote branch in local repo

git checkout -b <branch-name> <origin/branch_name>
git remote update origin --prune
git checkout --track origin/<remote branch to fetch>