win安装git环境


一、下载git

https://git-scm.com/download/win

 二、安装git

一路默认向下安装

 三、查看安装情况

 四、初始化git

 

 五、生成ssh密钥

ssh-keygen -t rsa -C "邮箱"

六、查看公钥

cat ~/.ssh/id_rsa.pub

七、绑定公钥

 八、按照页面提示连接git

九、新建并切换分支

十、提交代码

 git add  .

git commit -m ""

git push

Git