git remote origin clone tutorial code example Example: clone branch git git clone <repository_url> git branch -a git checkout <branch_name>