git clone branch http code example
Example 1: clone specific branch
git clone --single-branch --branch <branchname> <remote-repo>
Example 2: git clone repo with name
git clone https://github.com/foo/repo_name.git new_directory_name
git clone --single-branch --branch <branchname> <remote-repo>
git clone https://github.com/foo/repo_name.git new_directory_name