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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:36:03+00:00 2026-05-16T17:36:03+00:00

This is a capture from A Visual Git Reference that explains the idea of

  • 0

This is a capture from A Visual Git Reference that explains the idea of rebase.

http://a.imageshack.us/img339/4264/screenshot20100903at102.png

My understanding is as follows.

  • git is tracking the changes, so 169a6 and 2c33a has (keeps track of) the changes from commit a47c3.
  • the rebase means applying the changes to da985. As a result, f7e63 has (keeps track of) all the changes from b325c to e57cf.

Questions.

  • Is my understanding correct?
  • If so, how can we sure that the changes in 169a6 and 2c33a can be (safely) applied to at the commit da985?
  • If not, could you explain what the rebase does?
  • 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-16T17:36:04+00:00Added an answer on May 16, 2026 at 5:36 pm

    The way you phrased your understanding confused me a bit. I think you may have it right, but just in case you don’t, here’s the way I generally think of it. When you rebase, git takes those two commits and attempts to apply them to the new base. e57cf is the result of applying 169a6’s diff – that is, in simple ideal cases, git diff a46c3 169a6 and git diff da985 e57cf should produce the same output. Similarly, f7e63 should contain the same changes as 2c33a. You can think of “rebase” as a synonym for “transplant”, if that helps.

    Now, the changes cannot necessarily be cleanly applied. When rebase runs into a commit whose patch doesn’t apply, you’ll get conflicts just like with a merge, and it’ll ask you to resolve them then run git rebase --continue to move them.

    Hopefully it makes sense that this is really a mergey operation. There are some implementation details here, but the upshot is that git takes advantage of its merge facilities whenever it can. Although the end result is transplanting 169a6 so that it becomes e57cf, the contents of commit e57cf can be created by doing a merge of 169a6 with da985 – with the knowledge that they have a common ancestor a47c3, so a three-way merge is possible. This allows rebases to avoid conflicts some of the time you might expect them to occur.

    Implementation details, if you’re interested: by default, rebase uses git-format-patch to create the diffs and then applies them with git-am, with the --3way option, directing it to “fall back on 3-way merge if the patch records the identity of blobs it is supposed to apply to and we have those blobs available locally.” It’s also possible to tell rebase to use merge strategies internally, in which case it directly calls the merge strategy (recursive by default). Either way, it’s more sophisticated than simply dumping a patch and naively applying it.

    (That last paragraph is half from memory, half from skimming the source of git-rebase, and it’s late at night – if someone more knowledgeable happens by, please feel free to correct any inaccuracies or omissions.)

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

Sidebar

Related Questions

This is a screen capture from Pragmatic Bookshelf book. http://img13.imageshack.us/img13/3168/screenshot20100717at123.png It looks like that
I want to be able to capture images from a webcam on Linux. This
Basically, this question with a difference... Is it possible to capture print output from
This is a screen capture from Pragmatic Bookshelf. How to make this boxed text
I am trying to capture a session ID from a URL so that the
I'm wondering if it's possible to capture details from the web page that a
I want capture Rank from this code : $RankStr = 'var trafficstatsSnippet = /site/trafficstats;pysa1bpbPOVl6Wm5d4Zv4nKXKdM%3D
This is what I am trying to accomplish. Capture images from iPhone Store them
This is a code snippet from O'Reilly Learning Opencv, cvNamedWindow(Example3, CV_WINDOW_AUTOSIZE); g_capture = cvCreateFileCapture(argv[1]);
I have one audio file captured from my iphone. I want to upload this

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.