how to clone a repo with a certain branch linux code example Example: clone specific branch git clone --single-branch --branch <branchname> <remote-repo>