git init

创建仓库

参考下面创建公私秘钥对

注意不要以root用户身份创建公私钥,确保保存在/home/username

GitLab配置ssh key - 阿豪聊干货 - 博客园

Your identification has been saved in /home/xxx/.ssh/id_ed25519
Your public key has been saved in /home/xxx/.ssh/id_ed25519.pub

然后查看对应公钥,复制

 cat ~/.ssh/id_ed25519.pub

 

点最右上角的头像进去ssh配置

然后拉取

git clone git@gitlab.gz.xxx.cn:project_name.git

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐