git clone dev branch only code example
Example 1: git clone specific branch only
git clone -b mybranch --single-branch git://sub.domain.com/repo.git
Example 2: clone a branch
git clone --single-branch --branch <branchname> <remote-repo>
git clone -b mybranch --single-branch git://sub.domain.com/repo.git
git clone --single-branch --branch <branchname> <remote-repo>