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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:17:54+00:00 2026-06-01T22:17:54+00:00

How do I fetch back all the branches for my repository on Git? I

  • 0

How do I fetch back all the branches for my repository on Git?
I tried the following:

git remote add origin git@github.com:anchetaWern/Zenoir-Online-Classroom.git
git pull git@github.com:anchetaWern/Zenoir-Online-Classroom.git

I have 3 branches in that repository but now I only have the master branch. How do I pull back the other 2?

  • 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-01T22:17:56+00:00Added an answer on June 1, 2026 at 10:17 pm

    After you do the ‘git remote add origin the-repo’ just perform a ‘git fetch -a origin’ at which point all the branches are there and ready to be checked out. Here is a typical workflow:

    $ git init
    Initialized empty Git repository in /Users/ebg/test/dev5/.git/
    $ git remote add origin  /Users/ebg/test/dev1
    $ git fetch -a origin
    remote: Counting objects: 41, done.
    remote: Compressing objects: 100% (30/30), done.
    remote: Total 41 (delta 15), reused 0 (delta 0)
    Unpacking objects: 100% (41/41), done.
    From /Users/ebg/test/dev1
     * [new branch]      add-on     -> origin/add-on
     * [new branch]      master     -> origin/master
    $ git checkout add-on
    Branch add-on set up to track remote branch add-on from origin.
    Switched to a new branch 'add-on'
    

    So, for this example, branch ‘add-on’ is now in the working directory and ‘git checkout master’ will get files from the remote ‘origin’ if needed.

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

Sidebar

Related Questions

my author name in all my commits is coming up as unknown https://github.com/freeenergy/Teacher-Login-Validation-Module did
im working on a .net imap client when i fetch envelopes i get back
I need to recover two Git branches that I somehow deleted during a push.
My brain apparently can't handle Git. I'm trying. I'm failing. All I want to
Back again, thanks for all the help last time. I'm running this query: $query
Here is the situation I have..I have to fetch all the associated cases for
all I have downloaded source code from google android website following google's guide. My
I want to pull data from table Province_Notifiers and also fetch all corresponding items
I'm trying to rely more heavily on git-svn for all my tasks, rather than
I'm sending out a bunch of getJSON() requests to a remote server (to fetch

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.