Working on projects on GitLab from untrusted computers

时间:2018-02-01 18:19:25

标签: git security gitlab

I'm new to Git and GitLab (Hosted GitLab.com). I created a private repository. I want to work on it from a computer that i can't trust, so i don't want to log in with my account. I know that i can use access token but it will give full access to repository, including pushing. Is there a way (without creating another account) to allow this computer to access it but don't allow pushing without request, so that i can request from untrusted oc and then when i'm back home approve this request? Or any other ways to do something like that?

1 个答案:

答案 0 :(得分:2)

您可以使用http而不是ssh克隆存储库。对我来说,http总是要求我在使用http时输入我的登录名/密码。