Z
Z
zubero4eg2016-11-21 11:54:42
git
zubero4eg, 2016-11-21 11:54:42

How to clone a github project with one line including authentication?

git clone https://github.com/owner/repo.gitasks for a username and password. Can they be placed in a command so that they do not have to be entered separately? Need something vera

git clone https://username:[email protected]@github.com/owner/repo.git

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2016-11-21
@zubero4eg

git clone https://username:[email protected]/owner/repo.git

But it's better with SSH keys.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question