Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8075653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:03:54+00:00 2026-06-05T15:03:54+00:00

git clone supports both HTTPS and SSH remote URLs. Which should I use? What

  • 0

git clone supports both HTTPS and SSH remote URLs. Which should I use? What are the advantages of each?

GitHub’s docs don’t make a recommendation either way. I recall in 2013 GitHub used to recommend SSH (archive link). Why was that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T15:03:56+00:00Added an answer on June 5, 2026 at 3:03 pm

    GitHub have changed their recommendation several times (example).

    It appears that they currently recommend HTTPS because it is the easiest to set up on the widest range of networks and platforms, and by users who are new to all this.

    There is no inherent flaw in SSH (if there was they would disable it) — in the links below, you will see that they still provide details about SSH connections too:

    1. HTTPS is less likely to be blocked by a firewall.

      https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls

      The https:// clone URLs are available on all repositories, regardless of visibility. https:// clone URLs work even if you are behind a firewall or proxy.

    2. An HTTPS connection allows credential.helper to cache your password.

      https://docs.github.com/en/get-started/quickstart/set-up-git#connecting-over-https-recommended

      If you clone with HTTPS, you can cache your GitHub credentials in Git using a credential helper. For more information, see "Cloning with HTTPS urls" and "Caching your GitHub credentials in Git."

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use git clone from github and I deleted some files & modified some
I am trying to install https://github.com/markyoung/silk-sass-mixin $ (sudo) gem install compass $ git clone
When trying to clone ANY repository via https from github, we get: git clone
I did git clone https://github.com/niltsh/MPlayerX And it seemed to be downloading everything. But when
I have applied make to a github bootstrap clone ( git clone https://github.com/twitter/bootstrap.git )
Note: the test project I'm mentioning can be downloaded with: git clone https://github.com/mperdikeas/so-spring-di-appcontext-schemalocation.git ..
I clone my source using git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git w/ . Then I specify a
what I've done: git clone ssh://... ... git commit ... git commit but there
I have a remote git repository and I have cloned one branch git clone
git clone git@github.com:foo/bar.git bar-master git branch release git push origin release git clone -b

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.