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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:18:46+00:00 2026-05-26T13:18:46+00:00

What does it mean when a git rebase finds a conflict, but there is

  • 0

What does it mean when a git rebase finds a conflict, but there is no apparent problem in the file? The file in question has no conflict markers, and git mergetool says “nothing to merge”.

The options I have are reset or add:

# Unmerged paths:
#   (use "git reset HEAD <file>..." to unstage)
#   (use "git add/rm <file>..." as appropriate to mark resolution)
#
#   both modified:      filename.js

How do I find out what this is about and which path to take?

git ls-files -s filename.js gives 3 rows:

100644 d2c915b1d632b8ef8fbcf056824fb7fac7824ab9 1   filename.js
100644 9010798f1d19ac712196b1fc9b0870fd332b1275 2   filename.js
100644 b3ab7ec50812c73a3ec97bf0985f3226ec13cbc8 3   filename.js

According to the fine manual, this command tells us the mode bits, the object name, and the stage number. The mode bits are the same. So what are 1, 2, and 3, and why are they “both modified”, but not showing conflict markers?

  • 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-05-26T13:18:47+00:00Added an answer on May 26, 2026 at 1:18 pm

    The versions in the index marked 1, 2, and 3 have the following meaning:

    1. The file as it was in a common ancestor of the two commits you’re merging.
    2. The file as it was in HEAD, i.e. your current commit when you did the merge.
    3. The file as it is in the commit that you’re trying to merge into HEAD.

    My source for this information is the git manual’s useful section on resolving conflicts.

    The both modified output in git status indicates, of course, that the file was changed in different ways by the two commits that you’re merging since their common ancestor.

    It is rather mysterious to me why you don’t see conflict markers in the file, however – that the blobs have different object names (hashes) in the output of git ls-files -s indicates that byte-by-byte they certainly do have different content. If you are happy with the file as it is in your working copy, you can just do git add filename.js and then git rebase --continue. However, in any case you may want to find out what those difference were. To do that, I would try the following:

    git diff :2:filename.js filename.js
    

    … which will show the differences between the version in HEAD and your current working copy. Similarly, you can try:

    git diff :3:filename.js filename.js
    

    … to see the difference between the version in that was being merged and your working copy.

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

Sidebar

Related Questions

Does [_\s^] mean underscore and whitespace but not (quote) in Reg I understand that
What does this mean exactly? I'm doing something like this: File.Copy(@\\foo\bar\baz.txt, @c:\test\baz.txt); MSDN doesn't
Why isn't UTF-8 the default encoding for GitHub? Does that mean that there are
The term porcelain appears occasionally in the Git documentation. What does it mean?
What does the branch parameter mean when issuing git fetch <remote_repo> <branch> ?
What does this mean? Cannot get remote repository information. Perhaps git-update-server-info needs to be
Sorry, this is a very simple question. What does this merge marker mean in
In Git, what does deletion of a branch mean? Will it be gone from
When I type git status I see: T /path/to/file... M /path/to/otherfile... What exactly does
I saw this comment in git many times. What does it mean actually?

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.