GitLab-4.启用双重验证之后如何访问git

2022-10-19  本文已影响0人  那钱有着落吗

官网给的解决方案


https://docs.gitlab.cn/jh/user/profile/personal_access_tokens.html

按照官网的描述我们生成了一个token也就是令牌,然后复制保存好

之后访问git的时候 我们需要自行进行拼接访问:

项目的HTTPS下载地址为:https://git.com/ab/abc.git
拼接之后的git clone 地址为:https://oauth2:abcdefg@git.com/ab/abc.git,

也就是说ip前面加上 oauth2:令牌。

上一篇 下一篇

猜你喜欢

热点阅读