栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

gitlab 相关踩坑

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

gitlab 相关踩坑

1、git小乌龟出现Disconnected: No supported authentication methods available (Sever sent: public key)的解决方法

打开TortoiseGit->设置 - >网络,
在ssh客户端我更改“TortoiseGitPlink.exe”为“ssh.exe”。

PS:ssh.exe可以在安装目录 Git usr bin中寻找

2、首次克隆不下来可以用右键Git Bash

命令:Git clone git@gitlab.sinosoft.com.cn:cdc-ip/chronic-disease-web.git
Cloning into 'chronic-disease-web'

克隆成功:

3、未配置秘钥报错:

配置秘钥命令:

ssh-keygen -t ed25519 -C "邮箱@sinosoft.com"

秘钥生成成功。

 查看秘钥命令:cat /c/Users/admin/.ssh/id_ed25519.pub

gitlab 添加秘钥

4、用户名邮箱不匹配查看并修改:

 .gitconfig查看是否与当前所需用户名邮箱匹配:

修改用户名与邮箱命令:

修改用户名:git config --global user.name

查看用户名: git config user.name

修改邮箱:git config --global user.email 邮箱@sinosoft.com.cn

查看邮箱: git config user.email
 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/828676.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号