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 7063513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:43:20+00:00 2026-05-28T04:43:20+00:00

I am working on a project and I created a repository with a master

  • 0

I am working on a project and I created a repository with a master branch. Someone who is working on it added a branch named new-branch — their code changes are in this branch.

However, when I clone the repository:

$ git clone git@github.com:me/my-repo.git

I can clone it successfully, but it only shows the master branch. I do not know how I can view/get the new-branch.

How would I pull this branch to my repository?

  • 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-05-28T04:43:21+00:00Added an answer on May 28, 2026 at 4:43 am

    When you clone a repository, all remote branches are created as “remote tracking branches” in your repository. These aren’t shown by default, but you can see these with:

    git branch -a
    

    If you do a git checkout new-branch, git will find the remote tracking branch of the same name, automatically create a new local branch from the same commit, and switch to the new local branch.

    For future work, the git fetch command will update all the remote tracking branches with their latest commit from the remote.

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

Sidebar

Related Questions

I've created a repository in the project's directory. I've added all the files and
I have created a new project and checked the create a local git repository
I am using HgEclipse from here: http://www.javaforge.com/project/HGE I have created a new repository on
I am working on a ASP.net project created with local file system settings. I
While working on a project, I came across a JS-script created by a former
I have created a couple of java working sets for a project in my
I'm working on a new project and for some reason decided to create two
I'm working in an ASP.NET MVC project where I have created a two LinqToSQL
I'm using a local Git project repository, and have created a remote repository followed
I start working at an existing project (an web application) that was created by

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.