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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:33:39+00:00 2026-05-30T20:33:39+00:00

This is a complicated situation, but essentially what has happened here is that our

  • 0

This is a complicated situation, but essentially what has happened here is that our branch has become separated from master. So essentially:

A - B - C          master
     \
      X - Y - Z    feature

has turned into:

A - B - C          master

(A) - (B) - X - Y - Z  feature

The SHAs are the same for A/(A) and B/(B). This is exactly how it appears in GitK. At this point, I’m just trying to essentially put it back in the same order it was previously. Unfortunately, since the SHAs appear to be identical, I don’t know how I can manipulate X to branch out of B instead of (B). I honestly don’t know where to begin attempting this recovery. How can I reconnect the two branches at commit B?

Note that I have seen this question but it seems to be a slightly different issue, because the sha-1 of B and (B) are the same, since it has not been changed.

  • 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-30T20:33:40+00:00Added an answer on May 30, 2026 at 8:33 pm

    If you are sure the A/(A) and B/(B) are the same SHA hash, then I don’t see what the issue is, as X’s parent is B === (B) according to your diagram.

    Is this all on a local repository? Are there any remote bare repositories involved?

    Try running from the following to show the graph and put it in your question:

    git log --graph --oneline --all
    

    I replicated your setup with simple pushes and commits and this command gives (from the feature branch) :

    * 86bf1b1 added Y on feature
    * a690031 added X on feature
    | * a7347fe added C on master
    |/  
    * d02c518 added B
    * 7d81e39 added A
    

    If the SHA commits are as you suggest, you should see the same behaviour. If not, post an update with the isolated area you see at issue.

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

Sidebar

Related Questions

This is a complicated situation (for me) that I'm hopeful someone on here can
This is kind of a complicated situation. I'm refactoring (ground-up) c++ that must be
Our situation is as follows, but I'm curious about this problem in any situation.
I have this complicated slider that utilizes tons of animation. I'm trying to find
I can't believe how unbelievably complicated this has been... I have the following XML...
This is quite complicated but i would like to be able to refresh a
I'll start of by saying that I understand that this topic is complicated and
I know this isn't so complicated but I can't remember how to do. I
I have a rather complicated Binding situation. I have a solution that I created
So, here's the situation: I have a parent buildfile that defines a compilation task,

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.