how to only a branch in git code example Example: git clone specific branch only git clone -b mybranch --single-branch git://sub.domain.com/repo.git