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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:16:14+00:00 2026-05-25T15:16:14+00:00

I want to have a blessed repository and several group or developer repositories. Developers

  • 0

I want to have a blessed repository and several group or developer repositories.

Developers shall clone from the blessed repository work on that cloned repository and commit their changes. Whenever they feel like their work is completed, they shall push their changes to their public repository. Then the lead developer shall pull the changes from the public developer repository – do whatever he wants to do with it (sign off, modify, etc.) and then push it to the blessed repository.

distribued workflow

In any environment where code reviews count code might get rejected. Assume developer A and B work on a feature at the same time. Both developers finish their work and push the patches to their public repository. The patches of developer A get accepted while the patches of developer B are rejected. Then the lead developer pushes the changes of developer A to the blessed repository. Developer B fixes the patches and rebases his work on top of the blessed repository (the accepted changes of developer A respectively). If developer B pushes his work now to his public repository he will receive an error that the
repositories have incompatible histories.

The only way I could fix that was to delete the public repository and to recreate the repository. Is there a cleaner way to fix that?

  • 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-25T15:16:14+00:00Added an answer on May 25, 2026 at 3:16 pm

    Considering the public repo has for only client the integration manager, B can safely force push his work:

    git push --force
    

    The integration manager hasn’t accepted any of B’s commits, so B can rewrite the history of his commits and push them again.
    Would anyone else clone/pull from B’s public repo, then a push --force wouldn’t be considered an acceptable solution.


    The OP Alex added in the comments:

    So do I get that right? if anybody would pull from B the workflow is broken because the blessed repo isn’t a strict ordered subset of B’s ?

    I replied:

    If anybody else pulled from B’s public repo, then that history becomes public (which it is not in your scenario, since only the integration manager pulls, and don’t even keep B’s commits).
    And you shouldn’t rebase public history. See Pro-Git book “the peril of rebasing” section

    So if I have a hotfix to push to the blessed repo I’d kill all the stuff from my public repo to be as close as possible to the blessed one? Or how would the lead then cherry pick hotfixes?

    If you have other stuff in your public repo which haven’t been accepted yet, you could publish your hotfix in a dedicated ‘hot_fix‘ branch (that B has first rebased on top of blessed repo, and then pushed to B’s public repo) , monitored by the integration manager just for that.

    Anyway, the point is: that integration manager always expects new commits on top of his existing set of commits, new history, not a conflicting history (because of a lack of rebase from B).
    Any conflicting history should be rejected, whatever the origin of the branch.

    And beware of cherry-picking, it can lead to troubles. See:

    • “In Git, how do you apply a commit of bug fix to the other newer branches?“
    • “do a git cherry-pick in multiple branches“
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have output from two sources that I want to put together on
I want to have a select-only ComboBox that provides a list of items for
I want to have a text box that the user can type in that
I want to have a function that will return the reverse of a list
How do I copy/clone an object ref that has been blessed? For example, I
I want have a query with a column that is a hardcoded value not
I want to have mixed https/http site. Moreover I want have redirects from https
I want have a single database that uses InnoDB tables instead of myISAM tables
I want have a table in my view that is going to put 3
i want have an image and i want to set it as a background

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.