Error when trying to push/mirror Gitlab private Project to GitHub Private Repo

Hi,

I just checked tested, and it’s working. First:

make sure you have the following options selected:

give your access-token a name, and then copy the access token after saving.

Go to your Project --> Settings --> Repository --> Mirroring in gitlab. You need to make sure in the HTTP url that you put your username so:

https://myusername@github.com/myusername/projectname

so from your error above, something like:

https://balaji-dutt@github.com/balaji-dutt/repo

then the mirroring will work. I just did this with a private repository, rather than a public one. I selected the other appropriate options since I might make package releases and so want to be able for the mirror to delete if I delete on gitlab.

2 Likes