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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:21:10+00:00 2026-05-19T23:21:10+00:00

I’m trying a git rebase –onto master myremote/master~21 myremote/master to add the latest 21

  • 0

I’m trying a

git rebase --onto master myremote/master~21 myremote/master

to add the latest 21 commits from a remote repository on mine.

What git tells me is that there’s a conflict — but how’s that possible?

In my understanding it’s just taking that 21 commits and applying them on top of my master. How can there be conflicts?

Thanks for help!

I’m doing that btw because somehow I messed up my git-svn repository (the remote), and there’s 21 commits which I don’t manage to commit to subversion. So I’m trying with a fresh git-svn clone, in which I’m adding those 21 commits.

  • 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-19T23:21:10+00:00Added an answer on May 19, 2026 at 11:21 pm

    There is conflict if:

    • master has commit that are not in myremote/master.
    • those commits include common files/changes with one the last 21 myremote/master commits.

    If somehow the fresh git-svn clone has different SHA1 than the previous git-svn repo, then there is no close common ancestors, and the chances of conflicts are that much higher.
    See “How to identify conflicting commits by hash during git rebase?” for illustrations of conflicts during a rebase.


    One way to reset your local master to myremote/master would be to:

    git checkout -b tmp myremote/master  # local tmp branch from myremote/master HEAD.
    git merge -s ours master             # ignore completely master content
    git checkout master
    git merge tmp                        # fast-forward to tmp HEAD
    

    If you hadn’t made any changes in your local master before fetching myremote/master, this should work.

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

Sidebar

Related Questions

No related questions found

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.