在github进行协同开发

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可以添加合作者

posted @ 2019-10-22 11:25  RoseTying  阅读(133)  评论(0编辑  收藏  举报