Info | ||
---|---|---|
| ||
If you have your project on another code management platforms, you will learn how you can always have a fresh copy of your project also on GitLab |
Table of Contents |
---|
Info |
---|
Throughout this tutorial we are using public repository at following location: https://github.com/mkopsnc/beaver. However, you can use any other repository. |
Set up a pull mirror from GitHub to GitLab
Tip |
---|
In all the points below, GitLab is just an example. |
Clone repo and push changes - set mirror repository
- Open your command line terminal
Clone the repository from GitHub
Code Block git clone --bare https://github.com/GROUPNAME/PROJECTNAME.git
Push mirror to ACH GitLab
Code Block git push --mirror https://gitlab.eufus.psnc.pl/GROUPNAME/NEW-PROJECTNAME.git
Use GitLab credentials to access and update mirror repository
Refresh changes and push to GitLab - update mirror repository
- Open your command line terminal and go to cloned repository
Fetch changes and push mirror to ACH GitLab
Code Block git fetch origin "+refs/heads/*:refs/heads/*" --prune git push --mirror https://gitlab.eufus.psnc.pl/GROUPNAME/NEW-PROJECTNAME.git
Use GitLab credentials to access and update mirror repository
The scientific work is published for the realization of the international project co-financed by Polish Ministry of Science and Higher Education in 2019 from financial resources of the program entitled "PMW"; Agreement No. 5040/H2020/Euratom/2019/2
This work has been carried out within the framework of the EUROfusion Consortium and has received funding from the Euratom research and training programme 2014–2020 under grant agreement No 633053. The views and opinions expressed herein do not necessarily reflect those of the European Commission or ITER