0
点赞
收藏
分享

微信扫一扫

gitlab克隆代码到本地

ixiaoyang8 2022-03-16 阅读 104
gitbash

gitlab克隆代码到本地

  1. 在D盘新建一个文件夹code
  2. 在文件夹里面右键打开Git Bash Here
  3. 初始化
$ git init
  1. 配置本地仓库的账号和邮箱Git
$ git config --global user.name 'Your Name'
$ git config --global user.email 'email@example.com'
  1. 使用ssh密钥登陆 , 用下面指令生成ssh
$ ssh-keygen -t rsa -C "youremail@example.com"

选择一个文件夹作为生成密钥的存放位置,可自己设置,也可使用,默认的文件夹

  1. 找到需要下载的项目地址,克隆下来
    在这里插入图片描述
$ git clone http://192.168.110.43:9999/xujunkai/detectSunFront.git

项目下载成功
在这里插入图片描述

举报

相关推荐

0 条评论