Gitlab clone private repo using api

Viewed 11263
git clone https://gitlab.com:<private token>@gitlab.com/myuser/myrepo.git

Trying to clone private repository I have error " fatal: Authentication failed "

What am I doing wrong?

3 Answers

The gitlab has a lot token, the private token, the Personal Access Token, the CI/CD running token, I only just test the Persion Access Token using GitLab Community Edition 10.1.2, the example:

git clone https://gitlab-ci-token:${Personal Access Tokens}@gitlab.com/username/myrepo.git
Related