git客户端配置gitlab https

折腾了半天终于找到问题,之前在某帖子上看到
写入

[url "[email protected]:"]
    insteadOf = https://git.mygitlab.com

配置完后就一直报需要输入密码,尝试很久一直纠结于密码的问题,最后没办法把这段从.gitconfig文件中删除,可以成功通过git clone https地址的源码。

windows下git生成ssh秘钥对并添加到gitlab

https://www.cnblogs.com/superGG1990/p/6844952.html

帖子中为添加到github,gitlab中在gitlab->settings->ssh keys将id_rs.pub中的内容复制粘贴保存

windows下导入证书:

https://blog.csdn.net/caoshiying/article/details/78668076

windows下配置_netrc文件

https://www.cnblogs.com/dudu/archive/2011/07/06/git_save_username_password.html

_netrc文件中password后跟的your-password在gitlab->settings->access tokens生成填入

windows tortoisegit 增加 ssh key

https://www.jianshu.com/p/1bbf5e25c912

windows tortoisegit 创建本地库并提交

https://blog.csdn.net/jx950915/article/details/80445496

你可能感兴趣的:(git)