Committing to two copies of the same repo where only one sees changes of the other? Edited

I'm in an odd situation where we're getting commits from the repo on someone else's host, but we were told that there was no reason for our commits to merge in with their copy of the repo... which to me opens up the possibility of avoidable refactors, desynchronization, and merge conflicts, mostly on our side, and possibly repetitively.

Can someone explain what the benefits or most likely detriments are? I technically do have access to make a pull request to their repo but I don't understand the reticence or refusal to allow us to give our commits to them.

2 answers

1 accepted

0 votes
Accepted answer

Seems like the answer is that both parties should see each other's source code.

0 votes


Hi Dave, sending pull requests to someone else's repo is a very common practice so I can not really think of anything against it.

Maybe they want to control the code that comes into their repo, but they could enable reviewers for that, so the pull will need to be approved by certain people before it gets merged. 

I'm afraid you'll get a better response if you ask them directly, as they could have some reasons, or maybe be unaware on some of the features they could use to control the code.

Let us know if you need anything else!



When I ask them they simply ask why they should get our commits. When I explain they say it doesn't matter. They did give us access once but then restricted it after pulling in our commits and deploying them to their site. It's really weird.

Hi Dave, I'm not sure I understand correctly, it looks confusing. 

My understanding right now is that you got a copy of someone else's repo, then you tried to push your commits to their copy of the repo, but they said that they don't want your commits. Is this right? In this case, they should restrict access to their repo, and then explain to you how would they like to collaborate with you, in case that was the purpose of sharing the repo with you.

If they already tried restricting the access but you're still able to push your code to their repo, then there's a problem: they either didn't do it correctly or there's some kind of issue with the permissions. We could have a look at that but we'd need the name of the accounts and the name of the repos. 



Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

691 views 5 9
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