git进阶(远程仓库github)


ssh-keygen
-t rsa -C "youremail@example.com" //会生成.ssh文件夹,内有两个文件分别存储了私钥和公钥,公钥用于和github认证
//在github创建项目,比如f7-dome
git remote add origin https://github.com/zhenxianluo/f7-dome.git  //本地仓库与github上的f7-dome仓库关联
git remote rm origin  //取消关联
git push -u origin master  //将本地仓库(master)的文件推送到远程仓库,-u指第一次推送,后使用可省略
git clone git@github.com:zhenxianluo/f7-dome.git  //克隆远程仓库到本地
原文地址:https://www.cnblogs.com/zhenxianluo/p/6018453.html