I am trying to download a private git repo.
when I do git clone https://<DEV_USER>:<DEV_PWD>@github.<corpName>.net/Svcs/repo.git
it works!
But I dont really need all the git history. I just need the repo as a file directory. Hence I was trying to archive.
git archive --remote=<DEV_USR>:<DEV_PWD>@github.<corpName>.net:Svcs/repo.git
I get the following error
Could not resolve hostname <DEV_USER>: nodename nor servname provided, or not known
fatal: The remote end hung up unexpectedly
The URL is incorrect:
if you use an SSH one, you would not use your GitHub Enterprise login pasword, but
git@github.<corpName>.net:Svcs/repo.git
(and your SSH keys would be enough to authenticate you)if you use your credentials (login/password
<DEV_USR>:<DEV_PWD>
) then use an HTTPS URLhttps://<DEV_USR>:<DEV_PWD>@github.<corpName>.net/Svcs/repo.git