how to also clone a branch in git' code example Example: git clone branch git clone --single-branch --branch <branchname> <remote-repo>