Should I use HTTPS or SSH in Gitlab ? What would be the differences?

Asked

Viewed 86 times

1

I noticed that in gitlab there are two ways to clone a project, one by SSH and the other by HTTPS, my question is what would be the difference between them ?

For safety what would be the recommended use to carry out such a procedure ?

  • 1

    I don’t know why it is marked as duplicate, the other question is old and contains outdated information, today github marks HTTPS as recommended and it can be easily used in Bash

  • Thank you Silas, I do not understand why they marked as duplicate, I did not ask about advantages but yes if I should use ssh or https.

  • 1

    Since you can’t put answers, I answer right here. I recommend using HTTPS because it’s the default that the web uses. Even Google Core brands sites that use https as insurance, like stackoverflow itself. another thing is that when you push repositories using Https it asks for your repository password and login and ssh works in a completely different way, with keys and etc. That is, If you use SSH, anyone with access to your computer can push your placements. Learn more at: https://help.github.com/articles/which-remote-url-should-i-use/

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.