Home > database >  Update gitlab repository imported from github
Update gitlab repository imported from github

Time:02-20

I have a repository on github which once I finished I imported it to gitlab with new repository --> import project --> github and finally I selected the project to import Then I updated the project on github but I can't get it to do it on gitlab too Is there a way to pull changes to gitlab from this same repository? Thanks!

CodePudding user response:

The easy way is to:

  • clone your GitLab project locally
  • add GitHub URL as a remote
  • fetch the GitHub repository
  • push to origin (GitLab)

That supposes:

  • the import process has preserved the SHA1 commit history from the original repository (GitHub) to GitLab
  • you have not modified or added new commits to common branches (common to GitHub and GitLab)

CodePudding user response:

An alternative to the other answer would be to turn on pull mirroring in GitLab so that it automatically updates.

Note: This is a paid feature, but paid features are available on public projects.

  • Related