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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:03:01+00:00 2026-05-14T22:03:01+00:00

In this article , the author explains rebasing with this diagram: Rebase: If you

  • 0

In this article, the author explains rebasing with this diagram:

enter image description here

Rebase: If you have not yet published your
branch, or have clearly communicated
that others should not base their work
on it, you have an alternative. You
can rebase your branch, where instead
of merging, your commit is replaced by
another commit with a different
parent, and your branch is moved
there.

while a normal merge would have looked like this:

enter image description here

So, if you rebase, you are just losing a history state (which would be garbage collected sometime in the future). So, why would someone want to do a rebase at all? What am I missing here?

  • 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-14T22:03:02+00:00Added an answer on May 14, 2026 at 10:03 pm

    There are variety of situations in which you might want to rebase.

    • You develop a few parts of a feature on separate branches, then realize they’re in reality a linear progression of ideas. Rebase them into that configuration.

    • You fork a topic from the wrong place. Maybe it’s too early (you need something from later), maybe it’s too late (it actually applies to previous versions as well). Move it to the right place. The “too late” case actually can’t be fixed by a merge, so rebase is critical.

    • You want to test the interaction of a branch with another branch, but for some reason don’t want to merge. For example, you might want to see what conflicts crop up commit-by-commit, instead of all at once.

    The general theme here is that excessive merging clutters up the history, and rebasing is a way to avoid it if you didn’t get your branch/merge plan right at first. Too many merges can make it hard for a human to follow the history, and also can make it harder to use tools like git-bisect.

    There are also all the many cases which prompt an interactive rebase:

    • Multiple commits should’ve been one commit.

    • A commit (not the current one) should’ve been multiple commits.

    • A commit (not the current one) had a mistake in it or its message.

    • A commit (not the current one) should be removed.

    • Commits should be reordered (e.g. to flow more logically).

    While it’s true that you “lose history” doing these things, the reality is that you want to only publish clean work. If something is still unpublished, it’s okay to rebase it in order to transform it to the way you should have committed it. This means that the final version in the public repository will be logical and easy to follow, not preserving any of the hiccups a developer had along the way.

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

Sidebar

Related Questions

This article states that If your site is run on a shared Web server,
I've just came over this article , that suggest various techniques with generics. Author
I have read through Scott Hanselman's post on this topic. I found another article
This article gives a good overview on why structured exception handling is bad. Is
This article describes a way, in C#, to allow the addition of arbitrary value
This article here suggests to use -XX:+UseParNewGC To enable a parallel young generation GC
Taking this article on classes and structs as an example: http://msdn.microsoft.com/en-us/library/ms173109.aspx namespace ProgrammingGuide {
I came across this article written by Andrei Alexandrescu and Petru Marginean many years
I was reading this article about Double-Checked locking and out of the main topic
I read in this article that a company has created a software capable of

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.