1、创建github账号

2、创建公钥

[tomcat@publicserver ~]$ ssh-keygen -t rsa -C "1321385590@qq.com"

[tomcat@publicserver ~]$ cat .ssh/id_rsa.pub 

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHvMFe3KtZ9EHlKXaH52JRoSBp319B319hdqtjoTeRpd473ZFyfhrYMse4UQhPn9LFN4AxdYwXp+wVJIqQhzOPgoRr/XchWxJhsuawGX7E4oS+5/roa6teFg/012QTB8GNzUpd0zLuVonUpTDkA7h2V30A0T1dxmYihRTby94JPp4UyfeUtSfAXjJMNouzoIbogFVA9zzzR6SozFmdPVdV39vkFbmdaMTobZty9Zn/khPnuPWZLQ4A0KLuiMsQ9Y/3M0OYypqeWtTxOa9j9q81L9rwz9Z29IU4O9e4Pi8iptEsjsJKt+q/L6Nla7qWfhSxbv2w0aVA4lks5nup2FQH 1321385590@qq.com

3、将公钥内容添加到github

4、创建一个副本https://github.com/wakaleo/game-of-life

5、查看副本是否创建成功

6、将副本同步到本地

[tomcat@publicserver ~]$ git clone git@github.com:huhaiqng/game-of-life

Cloning into 'game-of-life'...

remote: Counting objects: 9195, done.

remote: Total 9195 (delta 0), reused 0 (delta 0), pack-reused 9195

Receiving objects: 100% (9195/9195), 17.56 MiB | 417.00 KiB/s, done.

Resolving deltas: 100% (5610/5610), done.