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

Tomás Lahoz Jan 23, 2019


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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,960 views 1 19
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