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

The Archive Base Latest Questions

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

I checked out a branch called ‘topic’. I am still working on topic, but

  • 0

I checked out a branch called ‘topic’. I am still working on topic, but I want to include changes that are now in master branch. So I did this:

$ git checkout topic
$ git rebase master

After that, there were merge conflicts for file xyz.txt. So I modified file to be what I wanted, git add it, and did git rebase --continue.

But immediatly, the same file had merge conflicts. I fixed the file again and this time had to do git reabase --skip to continue.

But yet again the same file has the exact same merge conflicts. How is this happening?

EDIT:

Previously, I had been merging master into topic branch to accomplish this purpose. Then I just learned of rebase. So I’m guessing that has something to do with it.


Here is the state of git right now right before the third commit

$ git status
# Not currently on any branch.
# Unmerged paths:
#   (use "git reset HEAD <file>..." to unstage)
#   (use "git add/rm <file>..." as appropriate to mark resolution)
#
#       both modified:      xyz.java
#
no changes added to commit (use "git add" and/or "git commit -a")

$ git ls-files -u
100644 cbf74a88604dd4ee0afe89d7aac1d179ce75e92c 1       xyz.java
100644 52841c2b4b6cc055251d533d5b83441d1329b412 2       xyz.java
100644 c45e7c6b979ec1e20b7dd70b38698193ea235abd 3       xyz.java

$ git log --graph --pretty=format:%d HEAD master topic
*  (HEAD)
*
*  (master)
*
*
*
*
*
*
*
*
| *  (topic)
| *
| |\
| |/
|/|
* |
| *
| *
| |\
| |/
|/|
* |
| *
| *
| *
| *
| *
| |\
| |/
|/|
* |
| *
| *
| *
| *
| *
| *
| *
| |\
| |/
|/|
* |
* |
* |
|\ \
| * |
* | |
|/ /
| *
| *
| |\
| |/
|/|
* |
| *
| *
| *
| *
| *
| *
| *
| *
| *
| |\
| |/
|/|
* |
| *
| |\
| |/
|/|
* |
| *
| *
| *
| *
|/
*
*
  • 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-17T09:19:05+00:00Added an answer on June 17, 2026 at 9:19 am

    Try git rebase --interactive to validate how Git will rebase the history. There will be a list of commits that will be applied in the given order ontop of your base commit, i.e. master:

    Example:

    pick 12345678 # This will be the first commit of your rebased topic branch
    pick deadbeef
    pick ffffffff
    pick 01010101 # This will be HEAD after the successful rebase
    

    Sometimes, Git doesn’t know if a commit is really new in a branch or just an existing commit (from master) with different ancestors. You can skip commits by removing them from the text file.

    If this doesn’t solve your conflicts immediately, there’s a real conflict between the two branches. Be sure to merge the file(s) and stage them using git add. Afterwards be sure to use git rebase --continue to move on. Don’t use git rebase --skip if you don’t know exactly that it’s useful here. (--skip will ignore the current, conflicting commit and try to apply the next commit, which might result in further inscrutable conflicts later on).

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

Sidebar

Related Questions

I have checked out now a local working copy of a codebase that lives
I've checked out a new branch to install a gem that I often have
Suppose I have my master branch checked out. I've committed some production changes to
I have a branch checked out in Tortoise 1.4.2, edited it in 1.6.2 and
I recently checked out a large C# code base that I will be doing
I've checked out a branch of C# code from source control. It contains maybe
The story is like this: I worked on branch A, and I checked out
I have a branch master and a branch feature which was checked out from
I have checked out a specific Subversion branch of my app. Call it '1.0'.
In git extensions, I have checked out the branch I need, the problem is

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.