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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:31:05+00:00 2026-06-08T09:31:05+00:00

I have been using git for a while and am comfortable with most of

  • 0

I have been using git for a while and am comfortable with most of the operations, push, pulls, merges, branches, forks, etc.

My question is about “When I clone a repository, I get a copy of all of the code, including all branches” which I think is true.

However, what happens when someone else makes a branch and then pushes that branch to github – just the unmerged branch that is. Will I not “get” this new branch unless I specifically git pull it by name of branch? That is how it seems. If I started from scratch and cloned the whole repository again, would that mean I would get the new branch? My key question is – how do I know what other branches exist. That is, although I may personally “know” the branch name from the developer, what if I don’t – how does my “local” git clone know about new branch names? Is it when I git pull origin master that I get the names of new branches and then I have to git pull origin [new_branch_name] using new_branch_name from the list that master has?

How do I know the names of new branches on the remote?

  • 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-08T09:31:07+00:00Added an answer on June 8, 2026 at 9:31 am

    git fetch will download any updates for your repo, including new branches.

    The output for the fetch command will indicate that new branches are being/have been downloaded.

    You can then use git branch -r to see the list of remote branches that are available. You will not see the new branches in this output unless you have done the fetch command first.

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

Sidebar

Related Questions

I have been using Git for my version control for a while now, but
Some Background I have been using Git for a while now. The projects that
I have been using git and git-svn for a while now but we have
I'm comfortable using git, but have been exploring Mercurial lately out of curiosity based
I have been using git locally for while a now and have a private
I have been using git and github with my small team of developers for
I have been using the Git bash for doing my commits until now and
We have been using gforge server for cvs/svn. Now we are moving to git.
I have been working on setting up a git server by using Paramiko to
I've been using git for a while for my one-man developments, but I haven't

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.