[工具安装]Git-windows

1.下载git

下载地址:https://git-scm.com/downloads/
演示为windows

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

下载完成,双击安装

一路下一步
通过快捷方式 git_bash进入git

到此,git安装完成

2.生成key

git bash:ssh-keygen -t rsa -C “your_email@youremail.com”
Enter回车  提示输入密码
说明:命令中的email,就是gitlab中的账号,需要保持一致执行完成之后,在.ssh 目录下就会生成秘钥文件
秘钥路径:C:UsersAdmin.ssh

3.关联gitlab

进入gitlab,个人中心,setting-SSH Keys
输入本地秘钥 + title

原文地址:https://www.cnblogs.com/zhangshan33/p/14188425.html