centos7获取github源码

这次要在github上面取一个开源项目的源码,在网上搜了一下,发现有个命令可以执行

git clone git@github.com:xxx/xxxx.git

执行结果:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

貌似是没有某种权限的样子。

后来在网上找了一下,发现有不类似问题,在github官网上也有类似的:

https://help.github.com/articles/error-permission-denied-publickey/#platform-linux

下面两章是介绍如果将SSH KEY添加到GITHUB:

https://help.github.com/articles/generating-ssh-keys/
https://help.github.com/articles/keeping-your-ssh-keys-and-application-access-tokens-safe/

上面这些准备好之后,就可以开始下载源码了:git clone git@github.com:xxx/xxxx.git

remote: Counting objects: 305032, done.
remote: Compressing objects: 100% (62/62), done.
remote: Total 305032 (delta 12), reused 0 (delta 0), pack-reused 304961
接收对象中: 100% (305032/305032), 474.38 MiB | 796.00 KiB/s, done.
处理 delta 中: 100% (193854/193854), done.
Checking out files: 100% (7351/7351), done.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值