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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:01:10+00:00 2026-05-14T03:01:10+00:00

I have a project A that is a Git repository. I would like to

  • 0

I have a project “A” that is a Git repository. I would like to be able to make multiple copies of project A (B and C), and modify them for clients.

“A” is the master so sometimes when I do new functionality i would like to be able to pull them into B or C. But some commits should just stay in A and only be used if making a new clone.

How do I do that with Git? That is:

  • how to copy A? (Clone?)
  • how to get specific commits into B and C?

Please keep in mind that this all happening locally – not on GitHub. I use OS X.

  • 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-14T03:01:10+00:00Added an answer on May 14, 2026 at 3:01 am
    • how to copy A?

    git clone is the way, meaning you establish a publication link between A and B,C, allowing for pushing/pulling commits between them.

    • how to get specific commits into B and C?

    By having in the repo A:

    • private branches where you develop as many feature you want (but this branch is never pushed anywhere else)
    • public branch which will be pushed to B and C
    • merge or rebase --onto your commits from your private branch on top of your public branch, then push that public branch to B or C.

    One workflow would be for instance:

    cd ~/projectA
    git checkout master
    git branch private
    # do some commits, some private, some useful to a
    git checkout master
    git branch feature_for_a
    git cherry-pick sha1_from_private
    
    cd ~/project_B
    git fetch project_A
    git checkout --track feature_for_a # check modifs for a
    git checkout master
    git merge feature_for_a
    # do some client specific modifications
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a non-standard subversion respository that we would like to convert to Git.
I am new with git. I have a project on git. I would like
Let's pretend I have a project directory that isn't a git repository. This project
I have a web server that serves a project that is a git repository.
I have a project that's using git. When I received the repo, it had
I have a large-ish project that I'm working on which uses git as the
I have a project in eclipse on my laptop that I pushed to Git
I have a Git repository that contains a bunch of top-level maven projects (each
I have a large collection of my personal scripts that I would like to
I have a project hosted on GitHub and I would like to work locally

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.