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

Clone repo and push changes - set mirror repository

  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://gitlab.eufus.psnc.pl/GROUPNAME/NEW-PROJECTNAME.git



  4. Use GitLab credentials to access and update mirror repository

Refresh changes and push to GitLab - update mirror repository

  1. Open your command line terminal and go to cloned repository
  2. 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


  3. Use GitLab credentials to access and update mirror repository


...