0

I want to clone a private github repository to another device. In another question, the answer was to add username and password like this:

git clone 'https://username:password/github.com/username/repo/' 

However, for me that resultet in the following error:

fatal. unable to access 'https://name:password/github.com/username/repo/': URL using bad/illegal format or missing URL 

What am I doing wrong? I hope y'all can help me. Thank you!

EDIT: I marked the question as duplicate, the suggested question solved my problem.

3
  • 2
    Note the @ (not a /), there are also many different ways of providing credentials, in the linked question above. Good luck! Commented Jun 4, 2020 at 12:48
  • Thank you. I'll try that out. I looked through many different questions, but none of them helped me. Sorry for asking a duplicate question, I didn't see that one. Commented Jun 4, 2020 at 13:03
  • Jannik it's alright, I have it bookmarked for my colleagues :) Commented Jun 4, 2020 at 13:11

1 Answer 1

1

Try [email protected] instead of https://

if still doesnt work follow below

The following steps should work

  1. create an access token in git hub
  2. git clone https://github.com/username/repo_name.git
  3. Enter your username and use the access token as password
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, the suggestions in the comments of my questions were already enough, simply replacing / with @ did it for me!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.