DEV Community

Dalitso Kasonde
Dalitso Kasonde

Posted on

1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more