How can I clone a private repo in the install step

david's Avatar

david

22 Feb, 2020 06:33 PM

I am able to clone a repo using a GitHub personal token, but I am wondering if I can do it somehow using the same GitHUb creds that are used for the top-level projects?

Thanks.

  1. Support Staff 1 Posted by Feodor Fitsner on 23 Feb, 2020 04:34 AM

    Feodor Fitsner's Avatar

    Hi David,

    You mean cloning the repo with your GitHub username/password?

  2. 2 Posted by david on 25 Feb, 2020 09:22 PM

    david's Avatar

    I am able to clone with https://<user>:<personal token>@...
    but it would be nice to just clone with the same credentials that are already configured and ssh. Not sure why it's not working out of the box. Thanks.

  3. Support Staff 3 Posted by Feodor Fitsner on 25 Feb, 2020 09:25 PM

    Feodor Fitsner's Avatar

    $HOME\.ssh\id_rsa is only written if project repository is configured to clone via SSH. Otherwise, you may want to look at this article: https://www.appveyor.com/docs/how-to/private-git-sub-modules/

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac