github上 new repository创建项目
本地创建ssh key
ssh-keygen -t rsa -C"your_email@youremail.com"
打开id_rsa.pub,复制里面的key
到github网站,进入Account Settings,左边选择SSH Keys,Add SSH Key
验证是否成功,在git bash下输入
ssh -T git@github.com
设置用户名和邮箱 邮箱是github邮箱
$ git config --global user.name"your name"
$ git config --global user.email"your_email@youremail.com"
webstrome进入git选项 登录github 连接远程库
项目setting的collaborators可以添加合作者
原文:https://www.cnblogs.com/jojoray/p/11718753.html