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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:49:09+00:00 2026-06-15T07:49:09+00:00

In git documentation says fetch doesnt merge with your working tree. So lets say

  • 0

In git documentation says fetch doesnt merge with your working tree. So lets say I have these branches: master, jhonny and miguel. Let’s say master is for the last production code release.

--------------------------------------------master
                         \-----------------------miguel
                          \---------------------------jhonny

Miguel and I have tracking of all branches in our local repo. Lets say Miguel commit and push his brach to the github repo. I want to have the miguel push localy. If I do fetch, what will happen? Does fetch just updates the remote repo reference? Origin in this case.

Vote down if you think this is duplicated. But I couldnt find the answer Im looking for yet.

Regards.

  • 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-15T07:49:10+00:00Added an answer on June 15, 2026 at 7:49 am

    Yes, git fetch only updates the local copy of the remote repo (i.e. the remote reference) – it doesn’t then merge those updates into the local branch the way git pull does.

    In this sense, git fetch is quite ‘safe’ as there are no merge issues and all of your local branches remain untouched. For a more detailed discussion, see: What is the difference between 'git pull' and 'git fetch'?

    If after a git fetch you do want to merge the remote changes with the local branch, you then need to run a git merge. This is in effect what git pull does.

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

Sidebar

Related Questions

In the documentation for git's merge command , the result of git merge topic
How the git tree shown in the git documentation like the one below G
I have two branches, master and dev. I always work on dev and only
I have set up Git and CruiseControl, and just finished getting phpUnderControl working (a
I've looked around StackOverflow and other places (including Git documentation) and just cannot get
I maintain a documentation with git and GitHub. The source files are TEX files
I am fairly new to Git and trying my best to find some documentation
Git says to use git add to add untracked files to my repo. I
Every piece of documentation I've read on git (including the online book and the
I am confused about a behavior of git checkout. The documentation of git checkout

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.