DEV Community

Dalitso Kasonde
Dalitso Kasonde

Posted on

Pull remote branches

When you pull a new repository , not all remote branches are pull

  1. type git fetch --all This command fetches all remote branches from your repository
  2. type git branch -r to view all your remote branches The two commands do not automatically pull your remote branches, you have to create a local branch and pull from the remote branch

  3. Type git checkout -b branchName origin/branchName - Replace branchName with the name of the remote branch you
    wish to pull

Top comments (0)