1.在本地运行ssh-****** -t rsa -C "[email protected]" -b 4096

生成SSH.

2.cat ~/.ssh/id_rsa.pub 复制里面的内容;之后去Gitlab项目页面,右上角->用户->Settings->

左边SSH Keys

linux从本地上传文件夹到gitlab

将cat里面的内容粘贴到这个文本框里

linux从本地上传文件夹到gitlab

3.git clone [email protected] 将gitlab上的项目克隆到本地

4.如果要上传文件的话

需要配置

git config --global user.email "[email protected]"
git config --global user.name "you"

5. git add .  当前目录的全部文件

6. git commit -m 'add file'
7.git push

相关文章:

  • 2021-06-29
  • 2021-05-10
  • 2021-08-06
  • 2022-12-23
  • 2021-10-01
  • 2021-08-17
  • 2021-10-15
  • 2021-07-08
猜你喜欢
  • 2021-04-13
  • 2021-03-27
  • 2021-05-06
  • 2021-06-10
  • 2021-12-14
  • 2021-12-14
  • 2022-01-30
相关资源
相似解决方案