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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:04:48+00:00 2026-06-17T08:04:48+00:00

I’m somewhat new to git and I’m experiencing some unexpected results when I git

  • 0

I’m somewhat new to git and I’m experiencing some unexpected results when I git merge. It appears that branch I’m merging FROM is changing, and this is not my understanding of how it should work.

Here’s an example. I have two branches: master and new-branch. new-branch is ahead of master by several commits. Maybe I switch back to master to make a quick fix. Then I switch back to new-branch and I want that same fix from master to be applied. So (while in new-branch) I do:

git merge master

Now, should master have changed at all? I’m expecting only the changes from master to get applied to new-branch, but that doesn’t seem to be happening. I keep loosing work and having to redo it and I cannot figure out why. Any advice?

Here’s some git log:

ESL-MAC:sow3.dev $ git log
commit d30a517211c8663ab5cd28664d1b7ea59c82b248
Author: el
Date:   Fri Jan 11 17:18:44 2013 -0500

    fixed wsat page again

commit 31557a867585ac81b6fda33971d9ba16f1efafb9
Merge: 35af780 5ea9b23
Author: el
Date:   Fri Jan 11 17:10:22 2013 -0500

    replaced meta for get_wsat() in WSAT

commit 5ea9b233fb3d01c0dc9dfb5b0e48c80e8fb0eb58
Author: el
Date:   Fri Jan 11 16:50:06 2013 -0500

    removed admin bar AGAIN

commit 177d9ab8973c0e9f85a21ffad4ef6065cf6e9675
Author: el
Date:   Fri Jan 11 16:47:07 2013 -0500

:
  • 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-17T08:04:49+00:00Added an answer on June 17, 2026 at 8:04 am

    This much is certain. In git if you:

    git checkout new-branch
    

    …and then…

    git merge master
    

    …nothing on master should change. As I think you already know, you’re asking git to merge any new commits from master into new-branch. If you’re getting a different result, something is seriously wrong. Hard to know what, though as you say you’re new to git my best guess is that you’re not actually committing on master the way you think you are.

    The simplest process for a commit would be:

    Do some work…

    git add path-to-file(s)
    git status (not strictly necessary, but will confirm that you actually added what you think you added)
    git commit -m "This commits the file(s) I just added"
    

    As Edward notes, seeing a git log might be revealing.

    HTH!

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

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I am doing a simple coin flipping experiment for class that involves flipping 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.