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 votes

 

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!

Ana

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 ...

439 views 6 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