Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

  1. Open your command line terminal
  2. Clone the repository from GitHub 

    Code Block
    git clone --bare https://github.com/GROUPNAME/PROJECTNAME.git


  3. 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: https://<your_github_username>@github.com/<github_group>/<github_project>.git

...

Select Mirror repository

Info

The mirrored repository is listed. For example:

Image Removed

How to synchronize with GitHub?

  1. Make some code changes on GitLab and commit it
  2. Log in to
    gitlab.eufus.psnc.pl
  3. On the top bar, select Menu > Projects and find your project
  4. On the left sidebar, select Settings > Repository

  5. Expand Mirroring repositories
  6. And click refresh button Udpdate now
    Image Removed

    Info

    Such information should appear on the website:

    "The remote repository is being updated..."

    Check your repository on github. Changes should be already pushed from ACH
  7. /GROUPNAME/NEW-PROJECTNAME.git



  8. Use GitLab credentials to access and update mirror repository

    Image Added

Refresh changes and push to GitLab