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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:23:33+00:00 2026-06-18T10:23:33+00:00

I have two branches in my local git repository, master and Logging. Both branches

  • 0

I have two branches in my local git repository, master and Logging. Both branches have remotes on BitBucket. master is the main branch of the project I’m currently working on. When other developers have finished features, they merge their branches into master. Logging is my current feature branch and was created from master.

To get the latest updates and reduce my merge pain, every so often I do a:

git pull origin master

while the Logging branch is checked out. My understanding of this command is it fetches from the remote origin of the master branch and merges any changes into the local master.

I then do:

git merge master

What I’m intending to do here is merge the changes I’ve just pulled into the Logging branch. However git always responds with:

Already up-to-date.

Indeed looking at git log and gitk seems to indicate that my local Logging branch does already contain the just pulled contents of master. I wasn’t expecting that doing a “git pull origin master” would affect my Logging branch at all. What am I not understanding here?

  • 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-18T10:23:34+00:00Added an answer on June 18, 2026 at 10:23 am

    Git pull includes a merge:

    git pull origin master
    

    is equivalent to

    git fetch origin
    git merge origin/master
    

    I.e. it merges the specified origin’s branch into currently checked out branch.

    The git fetch origin alone does not look at currently checked out branch at all. What it does is get the revisions and store the remote heads under refs/remotes/origin namespace. That’s where the git merge origin/master pulls it from (if name is not qualified with refs/something, git looks in refs/heads, refs/tags and refs/remotes).

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

Sidebar

Related Questions

I have seen two different ways of merging local branches. git checkout master git
I have merged two branches in a local Git repository, with a bunch of
Lets say I have the following two branches and the local branch is 'mybranch'
I am using git for windows to manage a local project. I have two
Let's say I have two local branches: master & dev. I want to force
We have a TFS 2008 project with two branches (Main and NewFeature). Each is
I have two git repositories on different PCs. I have some local branches on
I have two branches of my solution in GIT. One is X branch and
I have two remote branches, grape and master. I'm currently on grape. Now I
I have two branches at my local repository: default and s1 . At default

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.