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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:25:11+00:00 2026-06-16T00:25:11+00:00

So I forked an open source project, and sent in a bugfix last week

  • 0

So I forked an open source project, and sent in a bugfix last week that was not pulled into their master. I created that fix on a separate branch, rebased it on top of upstream’s master, and issued a pull request from that branch. However, I then began work on a new issue, but mistakenly created this new issue’s branch off of the branch I created for the original bugfix.

So now I have that commit directly below mine in the branch I’d like to push up and issue a pull request to. I fetched and merged all updates to upstream/master into my master branch, and I’d like to rebase this new commit on top and send it up, but due to that older bugfix commit, trying to rebase creates a conflict.

What is the best way to deal with this?

  • 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-16T00:25:11+00:00Added an answer on June 16, 2026 at 12:25 am

    (As stated in my comment, ) The solution would be to soft reset the commit (git reset --soft HEAD^), stash it with git stash save and then switch to the correct HEAD via rebase, checkout or whichever way you prefer or have to use.

    After this, a simple git stash apply should recover your work from the stash.

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

Sidebar

Related Questions

I have an application that depends on a 3rd party open source project hosted
This question is about etiquette and open source projects. I have forked an application
What is the preferred free open source project management and SCM tool combination for
I have an open source library which has plenty of unit tests that compare
I'd like to contribute to an open source project on Github. Before my workflow
Within a Visual Studio (2005/2008) Project I'd like to use an open source library.
Many open-source projects (e.g. django ) have GIT mirrors which are, in turn, forked
I forked a project a few weeks ago. The main repository is on a
I have forked a private repository (an iPhone project) as follows: cd nameofdirectory git
So I first forked a repo and then made a commit to that forked

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.