gitlab克隆代码到本地
- 在D盘新建一个文件夹code
- 在文件夹里面右键打开Git Bash Here
- 初始化
$ git init
- 配置本地仓库的账号和邮箱Git
$ git config --global user.name 'Your Name'
$ git config --global user.email 'email@example.com'
- 使用ssh密钥登陆 , 用下面指令生成ssh
$ ssh-keygen -t rsa -C "youremail@example.com"
选择一个文件夹作为生成密钥的存放位置,可自己设置,也可使用,默认的文件夹
- 找到需要下载的项目地址,克隆下来
$ git clone http://255.255.255.255:9999/xxx/xxx.git
项目下载成功