Bitbucket: Update a fork to merge changes of master repo?

Just like GitHub, you have to pull the commits down to your own machine, merge, and then push them back to your fork on Bitbucket.

If you go to your fork on Bitbucket you can click “compare fork” to get to a page where you see incoming and outgoing commits. If you go to the “incoming” tab, you will see instructions like

$ git remote add <remote_name> git@bitbucket.org:<upstream>/<repo>.git
$ git fetch <remote_name>
$ git checkout master
$ git merge <remote_name>/master

which correspond closely to the GitHub instructions.

Leave a Comment