How to move git repository with all branches from bitbucket to github?

前端 未结 11 1791
孤城傲影
孤城傲影 2020-12-02 03:21

What is the best way to move a git repository with all branches and full history from bitbucket to github? Is there a script or a list of commands I have to use?

11条回答
  •  广开言路
    2020-12-02 04:04

    There is the Importing a repository with GitHub Importer

    If you have a project hosted on another version control system as Mercurial, you can automatically import it to GitHub using the GitHub Importer tool.

    1. In the upper-right corner of any page, click , and then click Import repository.
    2. Under "Your old repository's clone URL", type the URL of the project you want to import.
    3. Choose your user account or an organization to own the repository, then type a name for the repository on GitHub.
    4. Specify whether the new repository should be public or private.
      • Public repositories are visible to any user on GitHub, so you can benefit from GitHub's collaborative community.
      • Public or private repository radio buttonsPrivate repositories are only available to the repository owner, as well as any collaborators you choose to share with.
    5. Review the information you entered, then click Begin import.

    You'll receive an email when the repository has been completely imported.

    1. https://help.github.com/categories/importing-your-projects-to-github
    2. https://help.github.com/articles/importing-a-repository-with-github-importer/

提交回复
热议问题