clone code from one branch to another github code example Example: clone a given branch github git clone --single-branch --branch <branch> <repository>