Is there anyone created a project from Gitlab private repo? How?


#1

I’m trying to create a new project from my existing gitlab private repo but I think I’m doing it incorrectly? Do I need to create ssh key? I follow the advice here Gitlab integrations but I’m not sure if I did it correctly. I also watched the video from here https://glitch.com/help/import-git/.


Gitlab integrations
#2

Hey @isemaj let’s see if we can get things sorted out.

You won’t need an ssh key for this process, but you will need your Gitlab username and password, and they need to be url-escaped, so if your password has special characters that disrupt urls that might be a problem for you. If I’m running into a problem like this sometimes I’ll temporarily change my password to something super simple for testing and change it right back after testing - if it works with a simple password then you know the problem’s with how your password is interacting with your repo url. Characters like “@”, “&”, and “?” commonly cause problems. You can also try to use a tool like https://www.url-encode-decode.com/ to encode the password portion.

The general format of the url you need to use, as mentioned in the help doc, is

https://user:pass@git-provider.com/orgname/reponame.git

So if you wanted to clone from my project at https://gitlab.com/cori/glitch-test (and it was private but you had access to it) your url would look like

https://isemaj:isemajsSimpleNewPassword@gitlab.com/cori/glitch-test

If you have two-factor authentication enabled in your GitLab account then this won’t work and you’ll have to use a Personal Access Token from https://gitlab.com/profile/personal_access_tokens.

Let us know if any of this helps!


#3

I am trying to import with this URL https://arun:personalAccessToken@gitlab.com/arunsathiya/newest.git but Glitch interface does not seem to be responding. Would you happen to know what might be happening here?

The Personal Access Token has read_repository scope on GitLab.com, which I assume is enough.

The other options are:

Thanks for taking a look!