Table of Contents |
---|
Set up a
...
pull mirror from GitHub to GitLab
...
Create a GitHub personal access token
Set up a push mirror on gitlab.eufus.psnc.pl
...
On the left sidebar, select Settings > Repository
...
Clone repo and push changes
- 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://
Enter a Git repository URL
Tip |
---|
Enter a Git repository URL with this format: |
...
Select Mirror repository
Info |
---|
The mirrored repository is listed. For example: |
How to synchronize with GitHub?
- Make some code changes on GitLab and commit it
- Log in to
gitlab.eufus.psnc.pl
- On the top bar, select Menu > Projects and find your project
On the left sidebar, select Settings > Repository
- Expand Mirroring repositories
/GROUPNAME/NEW-PROJECTNAME.git
Use GitLab credentials to access and update mirror repository
And click refresh button Udpdate now
Info |
---|
Such information should appear on the website: "The remote repository is being updated..." |