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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:42:12+00:00 2026-06-18T07:42:12+00:00

Feels like I should refresh a bit my knowledge of git. Say, I have

  • 0

Feels like I should refresh a bit my knowledge of git.
Say, I have branch with commit A1 A2 .. AM .. AN, where AM is pretty far from AN (after AM there had been a lot of, hundreds, actually other commits, including merges).

Some branch B had been checked out from AM, so this branch looks like AM B1 B2 B3 B4 …

Now I want to merge B back to A and, just as expected, get a lot of different CONFLICTS.
What is not expected, almost all of this conflicts are related to files I haven’t touched in branch B at all.

I can only assume that all these conflicts are due to the fact that AM is quite old branch.
My question is: what is the best way to merge B to A? The best strategy I can think of is to create a branch A1 A2 …. AM B1 B2 …. AN and try to merge this back to A1 … AN. How can I achieve this? Should I even try to? May be in my understanding of how git merges are done I am missing something fundamental?

  • 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-18T07:42:13+00:00Added an answer on June 18, 2026 at 7:42 am

    Really, you need to identify and understand those conflicts. This isn’t a process issue, something is wrong in your tree. If, as you assert, “AM” is an ancestor of HEAD on both branches, and commits “AM..AN” do not touch files modified in “B1..B4”, then you should not get conflicts on those files, period. The fact that you are implies that you are mistaken about the state of your tree, probably because there are merge commits in there that have modified the files, or because a rebase was done such that “AM” (the actual commit, not just another commit with the same message) is not actually a shared ancestor of both branches.

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

Sidebar

Related Questions

This feels like it should be pretty simple, but not much seems to be
It feels like this should be fairly simple but nothing i've tried so far
This feels like it should have a basic solution but I don't seem to
I have a question that really feels like I should have an easy answer
This feels like it should be very easy to do, but for some reason
Feels like there should be a more elegant way to write this code? try
This feels like it should be an extremely simple thing to do with regex
It feels like this should be somewhere here on SO. However I can't find
This feels like it should be an easy one, but I'm having trouble cleaning
This feels like it should be really easy, but I just can't get it

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.