# add a existing branch from a repository to your local git fetch origin <name of branch> # example git fetch origin test2 # if you want fetch to get all branch , git fetch --all