clone a given branch github

Shell
git clone --single-branch --branch <branch> <repository>

Source

Also in Shell: