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?
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.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.