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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:35:25+00:00 2026-06-10T08:35:25+00:00

I have the following situation: A—B—F—G—H (master) \ \ C—D—E (experimental) My problem is

  • 0

I have the following situation:

A---B---F---G---H (master)
     \
      \
       C---D---E (experimental)

My problem is that B is a very-very bad thing that shouldn’t have happened on master. It belongs on experimental. However F—G—H are okay. Is there a way to make everything look like this:

A---F'---G'---H' (master)
\
 \
  B---C---D---E (experiment)

I’ve read about rebase and stuff like that but the biggest problem is that master has been pushed to origin.

  • 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-10T08:35:27+00:00Added an answer on June 10, 2026 at 8:35 am

    git rebase --onto A B master will do.

    Seems you have master already pushed to orgin, if you are certain that it is safe to overwrite master branch of the origin, just do a git push -f on master branch. Be aware that it may cause other developers have a conflict when they pull from origin.

    Generally, branch in public repo should stay untouched, which means you can not expect removing commit B from the master, all you can do is fixing the mistake introduced by commit B in a new commit and push it to master again.

    If it is possiable to inform your team members about the rebase and you insist to do so, then it is okay for a rewrite, just make sure this won’t happer too often.

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

Sidebar

Related Questions

Let's say that I have following situation. I have many customers and many consultans,
I have the following situation: There is a windows folder that has been mounted
I have the following situation: Page1.aspx is based on a master page and has
I have the following situation: if (condition) { std::unique_ptr<AClass> a(new AClass); // code that
I have the following situation. I have a Java Class that inherits from another
I have the following situation: There is a tool that gets an XSLT from
I have following situation - Have a MongoService class, which reads host, port, database
I have following situation. In a constructor of a pseudo class I attach a
I have following situation (simplified, of course): MyDomain.groovy: class MyDomain { MyAnotherDomain anotherDomain //
I have following situation, String a=<em>crawler</em> <em> Yeahhhhh </em></a></h3><table; System.out.println(a.indexOf(</em>)); It returns the 11

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.