We currently have a BitBucket git repository with TeamA and RepoA. I'd like to make a Team B and RepoB that is a clone of RepoA. The TeamB people are free to commit whatever they want to RepoB. They don’t have access to RepoA. TeamA will continue working on RepoA. Completely separate worlds.
At times, I’ll need to merge some changes from RepoB up to RepoA.
Additionally, I’ll be resetting RepoB to be an exact copy of RepoA again. Thereby bringing TeamB up to the latest TeamA work and the cycle will repeat.
I’ve been a git user for several years but am not sure how to accomplish this. What is the best way?
Is there a way for RepoB to know it’s a clone of RepoA and still be in BitBucket?