DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Delightfully Nerdy
Delightfully Nerdy

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)

Now it's your turn.

Β 
πŸ—’ Share a tutorial
πŸ€” Reflect on your coding journey
❓ Ask a question
Β 
Create an account to join hundreds of thousands of DEV members on their journey.