【一】安装git:  https://git-scm.com/downloads

【二】新建工程

windows下使用git上传项目到gitlab

【三】创建秘钥

右击桌面

windows下使用git上传项目到gitlab

会出现命令行窗口

windows下使用git上传项目到gitlab

然后进入cd ~/.ssh/

配置全局的name和email

    git config --global user.name "***"

    git config --global user.email "***@**.com"

生成key

    ssh-****** -t rsa -C "***@**.com"

windows下使用git上传项目到gitlab

把id_rsa.pub里的内容粘贴到gitlab**中

windows下使用git上传项目到gitlab

【四】上传

右键要上传的项目,选择Git Bash Here

git config --global user.name "***"
git config --global user.email "***@**.com"
git init
git remote add origin ssh://[email protected]****
git add .
git commit -m "***"
git push -u origin master

相关文章:

  • 2021-09-19
  • 2021-08-29
  • 2021-09-11
  • 2021-09-10
  • 2021-11-23
  • 2022-01-08
猜你喜欢
  • 2021-07-24
  • 2021-11-30
  • 2022-12-23
  • 2021-06-05
  • 2021-07-25
  • 2021-06-19
相关资源
相似解决方案