下载安装Windows安装文档Git-2.16.2-64-bit双击安装(安装过程不详述)

  打开git客户端

  新建代码命令

 mkdir /c/code

  进入该目录(对应windows的c盘下面的目录)

cd /c/code

  执行命令生成秘钥/c/Users/liuym/.ssh/id_rsa

 ssh-keygen.exe

  查看秘钥

 cat /c/Users/liuym/.ssh/id_rsa

Windows安装使用git

  在gitlab添加秘钥

Windows安装使用git

 

   设置用户邮箱及用户名称

 git config --global user.email "you@example.com"
 git config --global user.name "Your Name"

  从gitlab拉取代码

 git clone git@gitlab.example.com:web/web-demo.git

  修改文件或者添加文件提交

git add *
git commit -m "change index.html"
git pull

  

相关文章:

  • 2021-11-23
  • 2021-07-29
  • 2021-07-30
  • 2021-09-12
  • 2021-09-27
  • 2021-07-15
  • 2021-04-21
  • 2022-01-22
猜你喜欢
  • 2021-06-09
  • 2021-06-27
  • 2022-12-23
  • 2021-05-07
  • 2021-11-17
  • 2021-12-08
  • 2022-12-23
相关资源
相似解决方案