问题
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.
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.
回答1:
First you must generate an access token from: https://gitlab.com/profile/personal_access_tokens
Then you can use https://oauth2:ACCESS_TOKEN@somegitlab.com/vendor/package.git
to access your project.
来源:https://stackoverflow.com/questions/49858817/how-to-use-https-with-gitlab-com