How to sync repos of bitbucket on github?

Member

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

How to sync repos of bitbucket on github?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by wilmer.lemke , 10 months ago

@daisha 

To sync repositories from Bitbucket to GitHub, you can use the following steps:

  1. Clone the repository from Bitbucket to your local machine using the following command:
1
git clone git@bitbucket.org:<username>/<repository-name>.git


  1. Change directory to the cloned repository:
1
cd <repository-name>


  1. Add a new remote for the GitHub repository using the following command:
1
git remote add github git@github.com:<github-username>/<repository-name>.git


  1. Push the code from the Bitbucket repository to the GitHub repository:
1
git push github master


  1. You may need to resolve any conflicts during the push process.


By following these steps, you can sync repositories from Bitbucket to GitHub.

Related Threads:

How to submit changes to the master repos in bitbucket?
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 synchronise non-sync branches in bitbucket?
How to sync with the original repository in bitbucket?