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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:58:44+00:00 2026-06-05T16:58:44+00:00

In an attempt to achieve git nirvana, I’m spending the day learning how to

  • 0

In an attempt to achieve git nirvana, I’m spending the day learning how to leverage rebase for situations where I currently merge.

When running through what I consider to be a git 101 flow (which I spell out below), I have to push --force when pushing my changes back to the origin.

I’m not the only one – I know that this is covered ground (see 1,2,3,4,5), and I understand the technical reasons why a force is necessary. My issue is this — there are many (many) blog entries singing the praises of rebase and how it’s changed their lives (see 1,2,3,4 to list a few), but none of them mentions that push --force is part of their flow. However, nearly every answer to the existing stackoverflow questions say things like “yeah, if you’re gonna rebase, ya gotta use push --force“.

Given the number and religiosity of rebase advocates, I have to believe that using ‘push –force’ is not an inherent part of a rebase flow, and that if one often has to force their pushes, they’re doing something wrong.

push --force is a bad thing.

So here’s my flow. In what way could I achieve the same results without a force?

Simple Example

Two branches:

  • v1.0 – a release branch, contains only patches
  • master – everything for the next major release.

I’ve got a few patch commits and a few commits for the next release.

premerge

I’d like to incorporate the patches into my master so that they’re not lost for the next release. Pre-enlightenment I’d simply:

git checkout master
git merge v1.0

But now I’m trying

git checkout master
git rebase v1.0

So now I’m here:

enter image description here

Time for:

git push

No dice.

  • 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-05T16:58:45+00:00Added an answer on June 5, 2026 at 4:58 pm

    Rebasing is a great tool, but it works best when you use it to create fast-forward merges for topic branches onto master. For example, you might rebase your add-new-widget branch against master:

    git checkout add-new-widget
    git rebase -i master
    

    before performing a fast-forward merge of the branch into master. For example:

    git checkout master
    git merge --ff-only add-new-widget
    

    The benefit of this is that your history won’t have a lot of complex merge commits or merge conflicts, because all your changes will be rebased onto the tip of master before the merge. A secondary benefit is that you’ve rebased, but you don’t have to use git push --force because you are not clobbering history on the master branch.

    That’s certainly not the only use case for rebase, or the only workflow, but it’s one of the more sensible uses for it that I’ve seen. YMMV.

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

Sidebar

Related Questions

So I've been running through a tutorial on texture mapping in OpenGL and I'm
I'm currently experimenting with CSS3 Animations, and try to achieve a Panoramic view with
First attempt to use this cool site - after searching for 2 hours: So
My attempt to customize the method contains of ArrayList, I used Eclipse to generate
I attempt to use webservice return POCO class generated from entity data model as
In an attempt to wrap some unmanaged code in a managed .dll I'm trying
Why does this attempt at creating a list of curried functions not work? def
When I attempt to debug a simple program with gdb on cygwin I get
I'm attempt to call a C++ dll with a struct and function like struct
in my attempt to learn a bit faster the use of spring and hibernate

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.