clone branch into new online branch git code example Example: clone specific branch git clone --single-branch --branch <branchname> <remote-repo>