How to sync with the original repository in bitbucket?

Member

by deron , in category: Third Party Scripts , 10 months ago

How to sync with the original repository in bitbucket?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by darrion.kuhn , 10 months ago

@deron 

To sync with the original repository in Bitbucket, you can follow these steps:

  1. Navigate to the directory of your local repository using the command line.
  2. Add the original repository as a remote to your local repository using the following command:
1
git remote add upstream <URL of original repository>


  1. Fetch the branches and commits from the original repository by running:
1
git fetch upstream


  1. Merge the changes from the original repository into your local repository using the following command:
1
git merge upstream/master


This will merge the changes from the original repository's master branch into your local master branch.

  1. Finally, push the changes to your forked repository on Bitbucket using:
1
git push origin master


By following these steps, you will be able to sync with the original repository in Bitbucket and keep your local repository up to date with any changes made by other contributors.

Related Threads:

How to sync a server with bitbucket automatically?
How to import and sync a bitbucket project?
How to sync eclipse project with bitbucket?
How to sync repos of bitbucket on github?
How to synchronise non-sync branches in bitbucket?
How to clone a bitbucket repository?