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

  • Home
  • SEARCH
  • 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 9010205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:23:47+00:00 2026-06-16T02:23:47+00:00

I have 2 branches (master and dev). Another worker has pushed a new branch

  • 0

I have 2 branches (master and dev). Another worker has pushed a new branch called stage into the repository so that stage is now 1 commit ahead of master. I am trying to pull down stage so that I can merge it into master (and thus merge into dev), but I am having issues pulling down stage. How do I pull down a clean version of stage?

  • 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-16T02:23:48+00:00Added an answer on June 16, 2026 at 2:23 am

    I don’t think you understand the branching basics of Git here. You may understand a bit more after reading my answer, by example.

    the long story

    You should fetch all updates

    git fetch --all
    

    then you should see the now still remote branch:

    git branch -a
    [...]
    remotes/origin/stage
    

    Optionally, you can make this branch a local branch stage (does not have to have the same name) by checking it out

    git checkout -b stage origin/stage
    

    And you should be switched onto this branch with this.

    Now back to master and merge it:

    git checkout master
    git merge origin/stage # or just 'stage' if you have it local
    

    the pull magic

    Now, one could combine both fetch and merge steps by a single pull. However, sometimes it’s needed to fetch new branches and their heads in order to be able to specify them.

    git pull origin stage
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a master branch that was branched from by another dev, who then
I have a 'master' branch and several topic branches. Assume that the master branch
I have two branches: master and dev I want to create a "feature branch"
I have two branches one is called master the other is called dev I
I have e.g. two branches. master and development. I created a branch called master_fix.
Sometimes I'm working with several branches at once. Say I have branches called master,
I have a git repository (at github.com) with two branches: master and gh-pages. I
I have machine1 with git repo client , which has branches master and fixes_v3
I have a git repo which has a few branches - there's the master
I have a repo with 3 branches: master, Stable, and dev. I made a

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.