git clone from another branch github code example Example: how to clone a specific branch from github that you are not working git clone -b <branch> <remote_repo>