git clone command with branch name code example
Example 1: git clone specific branch only
git clone -b mybranch --single-branch git://sub.domain.com/repo.git
Example 2: take clone from gitbash
$ git clone https://github.com/libgit2/libgit2 mylibgit