Migrate git repository to GitLab using the command line

  • Create a new EMPTY repository in GitLab. (Note: You MUST uncheck "Initialize repository with README")
  • Clone from the source remote repository (from e.g. BitBucket, Github):
    git clone --mirror git@bitbucket.org:path/to/REPO.git
  • Push the local repository to GitLab:
    cd REPO.git
    git push --mirror git@gitlab.com:path/to/REPO.git



see also

No comments:

Post a Comment