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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:39:31+00:00 2026-06-17T05:39:31+00:00

We use master for developement . We merge stable topic braches to master. For

  • 0

We use master for developement. We merge stable topic braches to master. For our clients we branch from master. We need to let some external collaborators (typically frontend devs) collaborate on client’s branch. But they MUST NOT have any access (read or write) to other branches or master (ideally not even to project’s history before the client’s branch diverged).

My idea was that we could create a new repo, where “revision 0” would be the one, where the client’s branch diverged and use pull requests to pull changes to the canonical repo. Is there any way to do that? I mean to create empty repo starting with some concrete revision of other repo.

I think it should be possible – because the content will be the same – so will the hash. But simple copy&paste of a revision would not work, or will be error-prone as the newly created request would need to be EXACTLY the same as the one in the canonical repo to have same hash.

Please note we use Github as our git hosting and we have no intentions to create our own git hosting.

  • 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-17T05:39:32+00:00Added an answer on June 17, 2026 at 5:39 am

    You are going to need one private repository per client, if you want to hide the clients from each other and your master. You’ll have one internal repository that contains your own development, and an orphaned branch for each of your clients. When you want to create a new client branch, you’ll do

    git checkout --orphan client_xx
    git commit
    

    Then you’ll have an orphaned branch containing the exact contents of your master branch at that time. To create a client repository you need to do a little trick with a temporary branch

    mkdir -p /path/to/client_xx
    cd /path/to/client_xx
    git init
    git fetch /path/to/internal client_xx:tmp
    git checkout tmp
    git branch master
    git checkout master
    git branch -d tmp
    

    Now the master branch of the client repository will contain the exact same sha1 as the client branch of your internal repository. You can have the client fork the client repository and make pull requests to you. You can integrate the client repository into your internal repository by pulling to the client branch. You cannot properly merge the client branch into master branch (or vice versa) as the client branch was orphaned, but you can do the integration using cherry-pick.

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

Sidebar

Related Questions

On some development branches I need to use origin/master on others I need to
Trying to create Database as follows: USE Master GO IF NOT EXISTS(SELECT [Name] FROM
I am having an issue with rebasing from master on to a 'deploy' branch
I'm just starting to use git and github and I need some advise. I
We work as follows in our team: we have only a master branch in
I was initially in master branch, then I create a development branch and use
I need to use sendmail from Macs in an office. At the moment, I
Initially i was planning to use master page for every page in my application.
I use asp.net script manager in master page to add js files . In
I'm trying to use jQuery UI tabs much like a Master Page in ASP.Net.

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.