github command line clone branch code example Example: git clone specific branch only git clone -b mybranch --single-branch git://sub.domain.com/repo.git