Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create common repository

Deleted user June 7, 2019

I have 3 repositories (3 projects c#) named "A", "B", "Common"
A use Common

B use Common

- When pull code from A, auto pull code from Common
- When pull code from B, auto pull code from Common

How can I do this?

1 answer

1 vote
Pankaj Jangid
Community Champion
June 7, 2019

While you can do this by writing a small shell utility script i.e. to pull from two remotes. But if you are collaborating on a project then I will recommend using a time-tested workflow for git. Bitbucket has listed a couple of them in the tutorials, but the most impressive workflow as per me is Gitflow. Do check it out here https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow.

 

There are three other workflows listed in the same tutorial. Do check them out as well for your needs. A good comparison is given here https://www.atlassian.com/git/tutorials/comparing-workflows.

Deleted user June 7, 2019

Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events