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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:36:44+00:00 2026-05-23T23:36:44+00:00

I have been reading about git rebase and the advantage of using a rebase

  • 0

I have been reading about git rebase and the advantage of using a rebase workflow instead of a merge workflow. (I haven’t actually been in the situations below as I am new to git)

I have read that one of the standard workflows for projects with multiple contributors is for the contributor to regularly regularly rebase their topic branch with the master branch of the “main (central/truth/canonical) repository”. Rebasing before making a pull request leads to merges becoming fast-forwards.

While this part of it makes sense to me, I see many situations where merges will not be fast forwards. I want to know what happens in these situations. Does the project master (the owner of the canonical branch) pull the topic branch onto a local branch, rebase and merge (to ensure it remains a fast forward) or does the project manager just make a non-fast-forward merge?

Once a contributor rebases and pushes his/her topic branch to a public repository, pushing a second rebase is not possible. What happens if those reviewing the contribution want to see some of the code refined/tweaked before merging? The master branch would probably have changed by the time the contributor makes the fixes and the contributor cannot rebase since that would mean rewriting the history of a public repository.

Another situation where a fast-forward won’t be possible would be when multiple submissions are made before the project manager can merge any into the master branch. While the first merge will be a fast forward, the remaining will not.

To summarize my question: What happens in situations where the branch that needs to be pulled in not based on master and cannot be rebased by the contributor? Does the project manager do the rebasing himself/herself before merging or does he/she just make a non-fast-forward merge?

  • 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-23T23:36:45+00:00Added an answer on May 23, 2026 at 11:36 pm

    The way GitHub has solved this problem is by allowing contributors:

    • to have their own repo on the server side (“fork“) where they can git push --force at their heart’s content)
    • to propose patches (pull requests) to the main repo (not branches, only commits to be applied or not), and that in a way for the maintainer to easily see if those patches can be applied in a fast-forward manner or not.

    In the case where a fork isn’t possible, you mention:

    Once a contributor rebases and pushes his/her topic branch to a public repository, pushing a second rebase is not possible.

    Pushing should be possible, maybe by deleting your published branch first, and re-creating it by pushing it again.
    As long as said branch has been rebased on top of the canonical branch, the new branch will be able to be “fast-forward” merged.

    More generally, the maintainer is rarely the one doing the work of solving non-trivial merges: if there is no fast-forward step in sight, he/she will simply reject that branch and will ask the contributor for a new one.

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

Sidebar

Related Questions

I am using Codeigniter to develop an application, and have been reading bits about
I have been reading about bcrypt (application perspective). Thinking of using it to store
I have been reading about creating offline websites using Gears and using HTML 5.
I have been reading about using Spring with Hibernate and I am really confused
I have been reading about using Sharp Architecture to control nhiberate via Wcf. Is
I have been reading about using nHibernate and multiple datasources and I get the
I have been reading about the differences between Table Variables and Temp Tables and
I have been reading about collision detection in games on stackoverflow and other sites.
I have been reading about the continuation passing style programming technique (C# 3.0 implementation).
I have been reading about Quicksort and found that sometimes it' s referred to

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.