1. Set up a pull mirror from GitHub to GitLab
1.1. Clone repo and push changes - set mirror repository
- Open your command line terminal
Clone the repository from GitHub
git clone --bare https://github.com/GROUPNAME/PROJECTNAME.git
Push mirror to ACH GitLab
git push --mirror https://gitlab.eufus.psnc.pl/GROUPNAME/NEW-PROJECTNAME.git
Use GitLab credentials to access and update mirror repository
1.2. 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
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