How I can push files from one bit bucket repository to another both are onn server

There are 2 repositories on bit bucket server with different name. I want to push code from one repository to another so that both will have same files. please suggest solution how I can take it forward

1 answer

0 vote


Hi Ankit! The easier way to do this if both repos already exist is to pull those files locally, copy them to the other repo and the push to Bitbucket. Otherwise, you can do a fork of the first repo, which will result in having 2 copies of the same files. 

However, note that this won't keep both repos synced, if you do changes in one they will not be reflected in the other. You can do that by following the steps at Keeping forks synchronized.

Hope that helps!


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
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...

2,048 views 1 5
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