远程交东西
1.(1)创建密钥
打开Git Bush Here,在里面写上一句话:ssh-keygen -t rsa -C "自己邮箱",在主目录找到.ssh文件,打开id_rsa.pub,然后复制
(2).登录GitHub,点击个人头像,选择Settings,在“SSH And GPG keys”页面,点击“New SSH Key”按钮,在Key文本框粘贴id_rsa.pub文件的内容

2.创建仓库



3.设置运程仓库
在本地的git仓库运行命令:
(git remote add origin git@github.com:zl0502/learngit.git)
4.推到远程
命令:git push -u origin master(是否连接,yes,然后回车)
网友评论