github使用

签名

$ git config --global user.name [userName]
$ git config --global user.email [userEmail]

设置 SSH Key

$ ssh-keygen -t rsa -C "your_email@example.com"

添加公开密钥

id_rsa文件是私有密钥,id_rsa.pub文件是公开密钥
位置```~/.ssh/id_rsa.pub

获取最新的远程仓库

$ git pull
posted @ 2019-11-22 19:20  江寻  阅读(77)  评论(0)    收藏  举报