1

I'm very new to GitHub and I'm trying to figure out how I can upload to GitHub through Putty. I am using Windows 8 and am using a Linux environment through Putty. I was following this guide: https://help.github.com/articles/generating-ssh-keys#platform-windows and it worked until (step 3) where it wanted me to copy the contents of the file to clipboard. I am assuming this is not possible because my Linux environment does not have clipboard.

The issue is mostly due to the fact that my code is on the linux envirnonment and I am not sure how I can upload it to GitHub. Does anyone have any advice as to how I can do this?

4

2 回答 2

0

您将更轻松地在 Windows 上使用 MinGW,甚至是 Github for Windows 客户端(后者“开箱即用”)

如果使用MinGW,我建议C:\Users\YourUserName\.ssh\id_rsa.pub在文本编辑器中打开,例如 sublime text,然后复制文本,而不是使用cat,因为这将确保你不会得到 shell 插入的额外空格(Windows 命令提示符对之类的东西)。

如果使用Github for Windows客户端,你不需要做任何这些(它发生在你的幕后),你只需要在客户端登录到你的 Github 帐户。

于 2013-07-25T05:53:13.970 回答
0

将文件提取出来,然后从 putty 会话中复制内容(只需突出显示 putty 中的文本即可将其复制到剪贴板):

cat ~/.ssh/id_rsa.pub

确保删除由于腻子包裹文本而插入的任何新行。

于 2013-07-24T15:05:07.163 回答