I had a working push-mirror setup from Gitlab to Github. At some, this stopped working due to authentication error (I guess because I was using password authentication). So, I tried the new method, that utilizes personal access token, with repository URL in the following format:
https://:@github.com//.git
However, I could not get it to work. I tried putting my username and email I use to login (both with plain @ and with it encoded as %40) as githubusername. I tried putting the access token in both the url and the password prompt, as well as in the passport prompt alone. All combinations of these ended in authorization error.
So, how exactly should the settings look for mirroring to Github to work?
If so, hover over it with your cursor - does any additional information appear?
It might also be an issue related to Protected Branches or Permissions. Even if you did not specifically set protections, they may be in place.
You can learn about protected branches here:
and find info on permissions here:
Keep me updated and feel free to ask if you have any additional questions.
I guess it must have been some kind of temporary problem on Github’s side - when I checked the repository today, I noticed it started syncing just fine without any changes on my part.
I tried to mirror all my gitlab repositories to github. For this I tried to use gitlab repo → Settings → Repository → Repository mirroring, but I had the following error:
13: push to mirror: git push: exit status 128, stderr: "remote Support for password authentication was removed on August 13, 2021
I googled the error and found this - looks like there is no really good solution right now then to just pull and push all repos, is there?