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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:31:32+00:00 2026-05-25T10:31:32+00:00

Say I do the following steps: fork some project, create a topic branch push

  • 0

Say I do the following steps:

  • fork some project, create a topic branch
  • push that branch over at GitHub
  • request a pull from that branch to the original project

However, I get some comments to improve stuff on the code.

  • I fix up the code, do a commit
  • Rebase to squash old commits

Problem is, I can’t push it anymore to the topic branch over at GitHub.

What’s the best way of handling this then?

  • 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-25T10:31:33+00:00Added an answer on May 25, 2026 at 10:31 am

    Once rebased, you cannot just add new commits on the forked repo (since you have replayed those commits during the rebase, rewriting their SHA1), you have to force your push:

    git push -f
    

    And then re-do your pull request.

    This is ok since nobody has yet cloned your repo and started to used your branch.

    If that branch was already used, follow that blog post:

    Important: If you’ve already pushed commits to GitHub, and then squash them locally, you will not be able to push that same branch to GitHub again.
    Create a new branch–like 100-retweet-bug-squashed or 100-retweet-bug-rc1 (for release candidate 1)–and squash your commits there.
    Once everything is squashed and ready, push the new squashed branch to GitHub and send your pull request to Gina.

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

Sidebar

Related Questions

My simplified and contrived example is the following:- Lets say that I want to
Say I have the following file structure: app/ app.py controllers/ __init__.py project.py plugin.py If
Let's say I carry out the following steps immediately after first installing and opening
I need to loop through all the matches in say the following string: <a
Let's say we have following this: <p class=first>This is paragraph 1.</p> <p class=second>This is
I had the following idea: Say we have a webapp written using django which
Is it right to use a private constant in the following situation: Say I
I'm designing a mySQL DB and I'm having the following issue: Say I have
Say we have the following method: private MyObject foo = new MyObject(); // and
Say I have the following class MyComponent : IMyComponent { public MyComponent(int start_at) {...}

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.