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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:51:32+00:00 2026-06-01T02:51:32+00:00

My git repository has ~2,000 commits. For educational purposes, I have been playing around

  • 0

My git repository has ~2,000 commits. For educational purposes, I have been playing around with git rebase -i.

When I type git rebase -i first-commit (where first-commit is a tag for the initial commit to the repo) and change nothing at all (i.e. leave all pick <hash> untouched), git starts replaying my history, but fails on dozens of commits citing conflicts. What would cause this? Why does it not simply replay my entire history?

  • 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-01T02:51:33+00:00Added an answer on June 1, 2026 at 2:51 am

    I tried recreating it with an open source project, and got similar results, conflicts reported when rebasing on top of first commit using rebase interactive.

    I ran it a second time and noticed it was happening at the same commit.

    git clone git://git.lttng.org/lttng-tools.git
    git tag first-commit fac6795
    git rebase -i first-commit
    
    Could not apply e4baff1... listing and activation of loglevel by number
    git rebase --abort
    

    It seems the conflict was happening close to a merge point:

    * 843f5df (HEAD, tag: new-tag) API change for lttng_destroy_session prototype
    *   90192ee Merge branch 'master'
    |\  
    | * 4dbd54a update loglevel printout
    | * e4baff1 listing and activation of loglevel by number
    * | 76d45b4 Add support for UST enable all tracepoints
    * | 6181537 Cleanup lttng enable event command
    |/  
    * 13dce3b loglevels: allow enable/disable
    * 81afa34 Add loglevel to event list
    * 57ab763 ABIs now support 256 char event names
    

    running the rebase again with the option -p was successful though:

    -p, --preserve-merges
               Instead of ignoring merges, try to recreate them.
    
               This uses the --interactive machinery internally, but combining it with the --interactive option explicitly is generally not a
               good idea unless you know what you are doing (see BUGS below).
    

    git rebase will change the history to be more linear. Since there are merges in the history, they will have to be resolved if there are conflicts when the merge point is flattened out.

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

Sidebar

Related Questions

A Git repository has been cloned on several developers' local machines. Some changes have
Say I have a git repository and I've been working on master, can I
I have a Git repository that has branch (local and remote) that has become
I have a remote git repository and I am trying to commit and push
I've been using for a while a small git repository that has been set-up
I have a large git repository that I am hosting with Dreamhost. It has
We have a git repository managed by gitosis under Ubuntu, which has worked well
I have a repository set up on a server running Git, the repository has
I have a local Git repository I've been developing under for a few days:
We have a certain binary file in our git repository. Usually it's around 2MB

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.