Sync Bitbucket server repository with another repositry
<p>I had a repository hosted on bitbucket cloud which I copied to bitbucket server instance using 
<a href="https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html" rel="nofollow">https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html</a></p>

<p>I used "<strong>Import an existing Git project into Bitbucket Server</strong>" method in the above URL.</p>

<p>Now, there are some updates made on the cloud repository (new branches, commits etc.) which I want to move to my Bitbucket server repository. How can I do that ?</p>

<p>One method I can think of is:
- clone bitbucket server repository
- add bitbucket cloud repo as new remote
- pull changes from bitbucket cloud repo
- push changes to bitbucket server repo</p>

<p>But the problem with above method is while pulling changes from bitbucket cloud repo, I don't know which branches to pull. I want all branches and commits to be synced.</p>

<p>Any pointers will be helpful.</p>