clone specific branch github desktop code example Example: clone a given branch github git clone --single-branch --branch <branch> <repository>