Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9217985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:45:28+00:00 2026-06-18T02:45:28+00:00

The git server I am trying to pull has a new branch . (call

  • 0

The git server I am trying to pull has a new branch . (call it branch-9)

In my local, I don’t have that and I do I pull it to my local computer?

should I run this?

$git checkout -b branch-9
$git pull branch-9 

is that the right way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:45:29+00:00Added an answer on June 18, 2026 at 2:45 am

    Doing a git fetch will, if you have configured the git server as a remote, create a local tracking branch.

    git fetch
    git checkout branch-9 # This will automatically set up to track "origin/branch-9"
    

    The long form of the above command is:

    git fetch
    git checkout -b branch-9 origin/branch-9
    

    after you’ve started making local changes to your copy of branch-9, then you might want to use git pull. git pull is the same as git fetch and either git merge or git rebase (depending on your settings, defaulting to git merge).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to set-up a git server on my local dev machine and have been
Hello I am new to Git and trying to setup server part and client
I am trying to have a git 'post-receive' on my server. I am using
I have been trying to install Git on my web server. When i try
I got an account for a new project to a remote git server that
I am trying to set up a Windows 2003 Server as a git server.
I am trying to push a self-hosted server repository to Git using Git extensions.
I've got bonobo git server that's supposed to handle syncing among at least 2
I setup git on an ubuntu server and I was pushing the local repo
I have GIT running on a Solaris server. From a windows machine I installed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.