0

I only have access to a RedHat box through ssh commands that I can connect to it. Now I want to copy my code from GitHub to that box.

In the browser view of my github I see two things: one for HTTP and one for SSH.

Does that mean I should use the SSH one? How?

I have used the HTTP one before by saying git clone thatHTTPAddrees

4

1 回答 1

1

如果您想首先通过 ssh 进行克隆,您需要设置您的 ssh 密钥,ssh-keygen可以在https://help.github.com/articles/generating-ssh-keys找到生成密钥和通过 ssh 进行克隆的完整演练

一旦你这样做了,你可以使用git clone git@github.com/<repo path>

于 2013-08-02T15:52:31.503 回答