Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Linking between two bitbucket repositories


I have two repositories on Bitbucket: repository A and repository B. I wish to merge the code from repository B with repository A while repository A was being executed locally on my local PC. Can this be done?

Thanks in advance

1 answer

1 accepted

1 vote
Answer accepted
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Mar 15, 2023

Hi @Ramakrishna chaitanya rachumallu 

In general, yes, merging/linking repositories is possible, but you need to be more specific on your expected outcome.

In most naive case, merging just the code, you can just copy a snapshot of the code in repo B into repo A.

If you are done developing repo B and you want to keep its history, you can add repo A's remote to repo B, and *push repo B's branches to the new remote - Note: you will have to do some merges/renaming for branches with same name like: main, master, dev, etc'. 
You can see more detailed answer here: 

If you wish to keep on developing repo B, there are several approaches with different outcomes and different working methodologies after the link. 
Have a looks at these links:

Thanks. I used git submodules as suggested and it solved my issue

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events