How to sync repos of bitbucket on github?

Member

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

How to sync repos of bitbucket on github?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by wilmer.lemke , 6 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 [email protected]:<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 [email protected]:<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.