Centos 6.6系统下安装Github

Centos 6.6系统下安装Github

第后生可畏安装github

# yum install git

完结以往

官方设置教程在此个网站下

自个儿来验证一下自家的铺排

ssh-keygen -t rsa -b 4096 -C "[email protected]"

运行这段代码
[email protected]
正是你和煦的github邮箱。。。不要问我github怎么注册。。。百度时而。

提示:

Generating public/private rsa key pair.

出现:

Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]

按回车

Enter passphrase (empty for no passphrase): [Type a passphrase]# Enter same passphrase again: [Type passphrase again]

输入四遍密码,用来前边获取sshkey

提示:

Your identification has been saved in /Users/you/.ssh/id_rsa.# Your public key has been saved in /Users/you/.ssh/id_rsa.pub.# The key fingerprint is:# 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db [email protected]

运行:

eval "$(ssh-agent -s)"# Agent pid 59566

铁锈红是成功的升迁

再运行

ssh-add ~/.ssh/id_rsa

到了下一步就跟官方说的不均等,因为辣个xclip小哥笔者没装(也没装好,缺个X11什么样的。。。今后装好了再跟大家说)

运行:

cat ~/.ssh/id_rsa.pub

会得到大器晚成段ssh-rsa
伊始[email protected]
结尾的key

下一场得到这段key

登录github的网址去丰裕,这段教程在官方网址中有截图,在setting 的SSH
keys里Add ,会发帖的都会。

丰硕成功之后

运行:

ssh -T [email protected]

检查实验是还是不是链接上

看来下边八个代码现身,你就超神日常的解决了

The authenticity of host 'github.com (207.97.227.239)' can't be established.# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.# Are you sure you want to continue connecting (yes/no)?

# Hi username! You've successfully authenticated, but GitHub does not# provide shell access.

至于怎么把品种拉下来

cd 到你要拉的目录下,拉的。。。行吗换个词,寄放的目录下

运行

git clone https://github.com/JustLittleBoy/One.git

假如在您的目录下现身了八个One文件夹里面还大概有三个index.php的文件就ok了

6.6系统下安装Github 首先安装github # yum
install git 完毕将来

官方设置教程在那么些网站…

相关文章

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图