Hey All! Random question: when you clone a Git repo, do you use HTTPS
or SSH
to do it? Furthermore, is your decision based on a specific reason (e.g. HTTPS
is traditionally easier on Windows?, team policy?), or mostly just habit (e.g. you've already got an SSH key so why not re-use it! 🚀, that's what GitHub shows by default)? I've noticed a diverse set of opinions across folks I know, and I'm mostly just curious about others' usage in-the-wild.
For further actions, you may consider blocking this person and/or reporting abuse
Latest comments (45)
I've used HTTPS for years and switched quite recently to SSH because I got bored of typing a password. My laziness always win.
SSH. Intuitive and once set up, easy on the fly connection to all applications and devices I use.
SSH as it's much easier when you use 2FA
I have shared my config folder between all my machines so that I never have to login to do stuff. Ssh is magic with small upfront investment.
SSH on Linux, Mac and Windows
I've only ever willingly done via SSH. Mostly, when I'm doing HTTPS, it's because the repo-maintainer doesn't provide me the option for SSH.
I use Linux about 99% of the time when dealing with Git, so I've long since been in the habit of using SSH for almost all Git usage. The only times I use HTTPS are cases where I need read-only access to a repo that doesn't support SSH access.
Realistically though, I originally started using SSH for the following three reasons:
HTTPS when I must (read-only or public GitHub) otherwise SSH (all pushes).
Cross platform, consistent, manageable, no plugins needed.
In Windows, GIT_SSH=C:\PuTTY\plink.exe and add my *.ppk key file (associated with Pagent) to the "Startup" folder in my user profile.
Oh God, ssh... Always ssh.
SSH for osx and linux. Used to do https on Windows but now that SSH support is built in I use SSH there to.