How can I clone a github private repository at local cli?

cli

#1

Hi, All.

I have no idea about cloning the github private repository at local cli.

I tried…

  • added a fingerprint which is related my ssh key in add_ssh_keys section
  • added a entry of github host to known_hosts

Then I ran circleci build, stdout showed me like Permission denied (publickey)..
Of course, I ensured ssh key in my host works fine.

I guessed --checkout-key never be used when execute run: git clone ... step… hmm…

Though I try to search likely topics from discuss.circleci.com, I found no topics.


Cloning Private Github repos with Circle Local CLI
#2

What value are you using for this flag?


#3

Yes, but --check-key seems not work fine to me.

I posted another thread about it.


#4

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.