I created a gitlab project from existing repository: how to synchronize with it

StackOverflow https://stackoverflow.com//questions/25055872

  •  21-12-2019
  •  | 
  •  

I created a git project from a public github project and I would like to get github project new versions: is it possible from gitlab? is it possible from command line?

有帮助吗?

解决方案

With command lines, go into you project folder. Type git remote -v : you should see a remote repo call origin with the address of you repository in gitlab.

Now you can try git remote add origin_github <url_of_github_project>. And then git pull origin_github master should update your repo from GitHub source to your own GitLab repo.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top