GitHub (Git) Working with two Repo's -


I have a report called "MVP" which contains the code that I want to separate because it will be normal in other parts system. I have created a new repository called "Share" with any history, I Git Archive

I add git remote MVP and git MVP and I hope I can just pull shared , however, share

wants to merge GIT which is not what I want

Can someone suggest a strategy that can be shared for my needs, Jha maintains code base and can pull the code base for other local repo?

Edit:

Not sure that this is the best way:

  1 shared code repo 2. Create other repos for projects 3. Deployment of projects (GIT bridge) 4. Depolicy share repo (GIT bridge) 5. Create signal link for projects from shared repo 6. Add symbolic link to GITnor.  A git pull is to throw a git after a git merge, then you actually asked to git a 

merge.

I suspect that although you want to use a submodule or subtitle for your usecase, you will get a GIT repo inside any other GIT repo. You should read about it in the git book.

For your case, I should do something like this:

  git clone ssh: //example.com/mvp git submodule add Ssh: //example.com/shared Shared git submodule update  

Comments