使用github上传托管自己的一些工具代码是作为一个程序员必备技能.下面就说明如何github使用ssh方式免密码同步方式
ssh-kengen -t rsa -C “some comments”,之后有三次询问,直接回车
如果是cygwin客户端,需要创建/home/user目录
ssh git@github.com
The authenticity of host ‘github.com (192.30.252.131)‘ 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)? yes
Warning: Permanently added ‘github.com,192.30.252.131‘ (RSA) to the list of known hosts.
PTY allocation request failed on channel 0
Hi robinchenyu! You‘ve successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.
git clone git@github.com:username/projectname.git
$ git config --global user.name "username"
$ git config --global user.email "address@mail"
原文:https://www.cnblogs.com/guanxinjing/p/11505193.html