git clone a branch from github code example
Example 1: git clone specific branch only
git clone -b mybranch --single-branch git://sub.domain.com/repo.git
Example 2: pull and clone origin branch locally
git clone --branch <branchname> <remote-repo-url>
git clone -b <branchname> <remote-repo-url> // -b === --branch