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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:52:15+00:00 2026-06-04T14:52:15+00:00

I have this * [cf0149e] (HEAD, branch_2) more editing * [8fcc106] some edit |

  • 0

I have this

* [cf0149e] (HEAD, branch_2) more editing
* [8fcc106] some edit
|
|  * [59e643e] (branch_2b) branch 2b
| /
|/
|  * [0f4c880] (branch_2_a) branch 2a
| /
|/
*  [a74eb2a] checkout 1
*  [9a8dd6a] added branch_2 line
|
|
| * [bb903de] (branch_3) branch 3
|/
|
| * [674e08c] (branch_1) commit 1
| * [7d3db01] added branch_1 line
|/
* [328454f] (0.0.0) test

I would like to combine these two:

*  [a74eb2a] checkout 1
*  [9a8dd6a] added branch_2 line

Into one

*  [a74eb2a] This is old [a74eb2a] + [9a8dd6a]

I’ve tried more permutations that I care to mention: reset, rebase, squash, edit. Can’t seem to pull it off. Whenever I have succeeded in merging them the merge only exists for one branch. For example, “branch_2” will end-up with a the desired combination located at HEAD~2. However, “branch_2b” and “branch_2_a” still point to the two commits I want to consolidate. In other words, I end-up with a new commit that is the consolidation of the two original commits. What I want is to have all branches coming out of those two commits to now refer to the new consolidated commit.

  • 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-04T14:52:18+00:00Added an answer on June 4, 2026 at 2:52 pm

    After squashing these two commits, you’ll end up with a brand new commit and history since the squash, called something else entirely:

    * [cf0149e] (HEAD, branch_2) more editing
    * [8fcc106] some edit
    |
    |  * [59e643e] (branch_2b) branch 2b
    | /
    |/
    |  * [0f4c880] (branch_2_a) branch 2a
    | /
    |/
    *  [a74eb2a] checkout 1
    *  [9a8dd6a] added branch_2 line
    |
    | * [cf0149e'] (HEAD', branch_2') more editing (post-squash rebase)
    | * [8fcc106'] some edit (post-squash rebase)
    | * [SQUASHED] "checkout 1" + "added branch_2 line"
    |/
    |
    | * [bb903de] (branch_3) branch 3
    |/
    |
    | * [674e08c] (branch_1) commit 1
    | * [7d3db01] added branch_1 line
    |/
    * [328454f] (0.0.0) test
    

    Notice that the other extant branches are unaffected; that’s because all you’ve done is made a new squashed commit—it doesn’t change the history of anything else.

    Your HEAD is now pointing to cf0149e', which will have a new SHA1 hash, because you’ve altered its history.

    Now, you can rebase the other branches, one by one, on SQUASHED, since that’s the point where they branched off, to produce:

    * [cf0149e] (HEAD, branch_2) more editing
    * [8fcc106] some edit
    |
    |  * [59e643e] (branch_2b) branch 2b
    | /
    |/
    |  * [0f4c880] (branch_2_a) branch 2a
    | /
    |/
    *  [a74eb2a] checkout 1
    *  [9a8dd6a] added branch_2 line
    |
    | * [cf0149e'] (HEAD', branch_2') more editing (post-squash rebase)
    | * [8fcc106'] some edit (post-squash rebase)
    | |
    | |  * [59e643e] (branch_2b') branch 2b (rebased on SQUASHED)
    | | /
    | |/
    | |  * [0f4c880'] (branch_2_a') branch 2a (rebased on SQUASHED)
    | | /
    | |/
    | * [SQUASHED] "checkout 1" + "added branch_2 line"
    |/
    |
    | * [bb903de] (branch_3) branch 3
    |/
    |
    | * [674e08c] (branch_1) commit 1
    | * [7d3db01] added branch_1 line
    |/
    * [328454f] (0.0.0) test
    

    The old history is now irrelevant, so really we have:

    * [cf0149e'] (HEAD', branch_2') more editing (post-squash rebase)
    * [8fcc106'] some edit (post-squash rebase)
    |
    |  * [59e643e] (branch_2b') branch 2b (rebased on SQUASHED)
    | /
    |/
    |  * [0f4c880'] (branch_2_a') branch 2a (rebased on SQUASHED)
    | /
    |/
    * [SQUASHED] "checkout 1" + "added branch_2 line"
    |
    | * [bb903de] (branch_3) branch 3
    |/
    |
    | * [674e08c] (branch_1) commit 1
    | * [7d3db01] added branch_1 line
    |/
    * [328454f] (0.0.0) test
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this webpage which shows me some images and some images are on
have this code: template<typename T, template<typename, typename> class OuterCont, template<typename, typename> class InnerCont, class
Have this query: SELECT HOUR( DATE ) AS hr, COUNT( * ) AS cnt
Have this self-made slider: http://jsfiddle.net/wyc3P/4/ What it does: takes min and max values in
I have this data AnsID QuesID AnsOrder ----------------------- 1 5 NULL 2 5 NULL
i have this code local strs = my dog print (string.gsub( strs , ,%20))
I have this hash: a={topic_id=>60693, urlkey=>innovacion, name=>Innovaci\xF3n} and I am trying to save it
I have this method (someone else wrote it!) - (IBAction)showMasterPopover:(id)sender { if (_hiddenPopoverController &&
I have this curious thinf happening here where tempArray is supposed to be added
I have this code : h1, h2, h3, h4{ color: red; } .message_rouge h1,

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.