how to take clone in git and chekout branch and pull code example Example: clone a branch git clone --single-branch --branch <branchname> <remote-repo>