环境配置-Git和GitLab

Git安装

到官网下载安装包,直接一路next即可。

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

配置用户名和用户邮箱

$ git config --global user.name "XXX"
$ git config --global user.email "XXX@XXX.com"

GitLab配置

在git命令行用下面命令生成两个文件

$ ssh-keygen -t rsa -C 'XXX@XXX.com'

打开用户目录的 ~/.ssh下的id_rsa.pub文件

拷贝到GitLab的SSHKEY中

img

相关资料

原文地址:https://www.cnblogs.com/ging/p/14115636.html