It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sync a fork via script


Right now, we have an 'upstream' project from which our developers create a fork to develop their features. Obviously, as the documentation says:

After you fork a repository, the original repository is likely to evolve as other users commit changes to it. These changes do not appear in your fork automatically. To find out if your fork is missing commits, at the bottom of the Repository details card of your fork, you'll see a button with Sync (# commits behind). Click this button to pull these commits into your fork.

We're trying to automatize this synchronization of our forks with their upstream via some script to do the same as this button without human intervention. I've been exploring the API v2.0 but failed to find something similar to this bitbucket server API call:


that works for bitbucket cloud one. Is there any that I've failed to view, another way or workaround to do it?

Many thanks!

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

439 views 0 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you