Get back my repo into my git . Best solution

Hello,

 

Sorry if my question has already been treated somewhere else.

I d'ont have so much experience so far on that but I intend to have some trainings soon.

My sub contractors hosts my source code under their own git server. I want to get it back integrally with branches and historic into mine (bitbucket). Not sure for now about the impact and consequences of the different choices.

We may have in the futur some work together as well. 

 

What would be the best actions ?

1. git fork

2. Git remote + git push under mine ?

 

Thanks in advance for your advice.

1 answer

0 votes

Depends on what you want. Is it is a one-time sync or do you want to keep it syncing every time. If it is a one-time sync, you just need to clone the repo and push it into your bitbucket.

If you want to keep them in sync or if you want to make changes and request those changes to be incorporated into the sub contractor repo, fork is the way to go.

OK thanks. I think we could have to work again together but I want them to be the slave so they will do merge request to me and I decide if I take the merge or not.

 

Will it work if my repo is a fork from them ?

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

661 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot