1.注册账号
打开https://github.com/,在下图的框中,分别输入自己的用户名,邮箱,密码

2.创建代码库
登陆之后,点击页面右上角的加号,选择New repository:

进入代码库创建页面:
在Repository name下填写yourname.github.io,Description (optional)下填写一些简单的描述(不写也没有关系),如图所示:

正确创建之后,你将会看到如下界面:

3.配置使用SSH-key
1.生成key
$ ssh-keygen -t rsa -C "2101904558@qq.com"
2.添加SSH key到github
- 查看并复制公钥id_rsa.pub内容。
- 登录github,在Accout Settings -> SSH Public Keys -> add another public keys
- 将复制id_rsa.pub内容复制到密钥文本框中。
Paste_Image.png
4.测试$ ssh -T git@github.com
Hi you-deng! You've successfully authenticated, but GitHub does not provide shell access.
网友评论