download a specific branch git

Shell
git clone --single-branch --branch <branchname> <remote-repo>

Source

Also in Shell: