Git support for two versions of the same project with different users on each

I have a (private) project on github where the development team is making changes. The client now asked to develop some heavy settings on their own copy of the system. The new team will work on this project, but I do not want this team to have access to the original repository. So I created a new github repository and initialized it with code from the original project.

However, I still want the second project to receive updates made in the original project. How to configure storage to meet this need?

Alternatively, if I want to save one project, is there a way for the new team to have access only to a specific branch on it?

+5
source share
3 answers

I have followed the recommendation of this site . I repeat this process for everyone who is interested in: Suppose the source project is verified in projectA and the derived project in projectB :

The first time I did:

 cd path/to/projectB
 git remote add orig_project path/to/projectA 
 git fetch orig_project
 git merge orig_project/master -X theirs
 git push

Now every time I need to synchronize changes from projectA to projectB, I do:

git fetch orig_project
git merge orig_project/master
git push

orig_projectcan be any. I used it -X theirsfor the first time, because otherwise all selected changes conflict

+5
source

. , , , . .

+1

All Articles