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

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

  •  21-12-2019
  •  | 
  •  

Frage

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?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top