how to change github branch of cloned directory code example
Example: git clone specific branch only
git clone -b mybranch --single-branch git://sub.domain.com/repo.git
git clone -b mybranch --single-branch git://sub.domain.com/repo.git