1 > --- https://github.com/ 地址在此
2> --- 先注册,不赘述
3> --- 本人使用的是linux 系统,别的也没管.....学习是为了解决自己的问题
4> --- 注册好后,头像框旁边的 + 号 create a new repository
*一般创建好后 creating a new file 需要 new file 一个
5 > --- 关于密钥
1 ssh -T [email protected]
2 ssh-keygen -t rsa -C "[email protected]"
6 > --- 点头像 setting 然后 SSH keys 那一栏 cat 命令打开密钥 地址在主目录 . ssh 里面
cat id_rsa.pub
7> --- 以下在终端输入 换成自己的内容
git config --global user.name "rzry" git config --global user.email "[email protected]"
8> --- 你就可以
git clone https://github.com/rzry/你的仓库地址
9> ---
cd /home/rzry
ls
10 > --- 你就可以看到你的仓库了
11 > --- 上传 也很简单
git add . git commit -m "first" git push -u origin master
恩 大功告成