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

  • Home
  • SEARCH
  • 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 6209061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:55:02+00:00 2026-05-24T05:55:02+00:00

I’m hacking on a GitHub-based project and I’m putting each new feature in a

  • 0

I’m hacking on a GitHub-based project and I’m putting each new feature in a separate branch. I started from the upstream master branch and made some changes in a branch feature1. The problem is that I forgot to switch back to master before implementing feature2, so my tree looks like this:

* 4a0d1ef - Added feature 3 (HEAD, feature3)
| * 685534d - Finished feature 2 (feature2)
| * ef31e06 - Started feature 2
| * cd2ebe3 - Finished feature 1 (feature1)
| * dbd1041 - Started feature 1
|/  
* 9bfffc2 - Latest upstream change (origin/master, origin/HEAD, master)

(I implemented a third feature, and that time I remembered to make my changes against master.) I have already submitted all three features as separate pull requests, so I don’t think rebasing is possible. Is there any way to change the feature2 branch so that it’s based on master instead of the feature1 branch?

  • 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-24T05:55:02+00:00Added an answer on May 24, 2026 at 5:55 am
    git rebase --onto master feature1 feature2
    

    master is the new baseline, feature1 is the old baseline, and feature2 is the branch you’re changing.

    If your pull request has already been accepted, there’s not much you can do. Otherwise, do the rebase and do a new pull request.

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

Sidebar

Related Questions

I've started hacking together a little application for managing a list of addresses and
i'd like to prevent bots from hacking weak password-protected accounts. (e.g. this happend to
I'm hacking the OOXML format with XPath and it contains some 0-based arrays. What
I've been hacking away on an ARM based device (Freescale i.MX27 ADS) with a
I am fairly new to RoR and hacking on a small application. In order
I'm new to node and am hacking together a node application utilizing node_pcap to
I've implemented a gridview and I've been hacking it together from examples to get
I'm hacking away at some code which seems to have been started, at least
I am hacking up a tagging application for emacs. I have got a tag
I'm hacking on a simple Cocoa app to make blocks move around the screen

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.