ubuntu git clone branch code example Example: clone branch git git clone <repository_url> git branch -a git checkout <branch_name>