github desktop clone specific branch code example
Example 1: clone a given branch github
git clone --single-branch --branch <branch> <repository>
Example 2: clone code github
$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY
git clone --single-branch --branch <branch> <repository>
$ git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY