如何在gitlab.com中使用https? [英] How to use https with gitlab.com?

查看:64
本文介绍了如何在gitlab.com中使用https?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前一段时间,我可以在 gitlab.com 中使用 https .我目前正在使用一家公司,但不想将其添加到gitlab的ssh键中,所以我尝试使用https拉动gitlab.com,但似乎我一直收到500错误.

A while back I was able to use https with gitlab.com. I am currently using a company that I don't want to add to ssh key to gitlab, so I tried to use https to pull and push on gitlab.com but it seems like I kept getting 500 error.

我记得我必须为此添加一些令牌,但我不记得我该如何在gitlab中使用https,而且似乎没有文档.

I remember I have to add some token for this but I don't remember exactly how I can use https with gitlab and there seems to be no documentation for this.

推荐答案

首先,您必须从以下代码生成访问令牌: https://gitlab.com/profile/personal_access_tokens

First you must generate an access token from: https://gitlab.com/profile/personal_access_tokens

然后,您可以使用 https://oauth2:ACCESS_TOKEN@somegitlab.com/vendor/package.git 来访问您的项目.

Then you can use https://oauth2:ACCESS_TOKEN@somegitlab.com/vendor/package.git to access your project.

这篇关于如何在gitlab.com中使用https?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆