question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to clone via SSH

See original GitHub issue

Description

When cloning via Desktop the remote origin is set to the https URL. Since I always use SSH when working on the terminal, I have to change the remote which is really annoying. It would be nice to have a setting where the user can decide if new repos should be cloned via https or ssh.

Version

GitHub Desktop version: 0.6.1 OS version: macOS Sierra 10.12.5 (16F73)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:79
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

41reactions
foresmaccommented, Dec 13, 2017

Please let me leave a strong +1 on this feature request. I got frustrated with this a lot recently since we’re doing like a dozen new projects at the office. Even after manually selecting the ssh ref and pasting that into the clone repository dialog, Github Desktop rewrites them to use the HTTPS URLs.

Due to security and regulatory reasons, we need to sign every commit, and this is all handled perfectly via terminal and VS Code because I have everything configured in my git config. But trying to do it via HTTPS is a major pain.

29reactions
cmeyertonscommented, Jun 13, 2018

Expanding on @joshaber 's comment, the workaround can be performed with

git config --global url."git@github.com:".insteadOf https://github.com/

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set up SSH and Clone Repository using SSH in Git?
How To Clone Repository Using SSH Protocol? · Have a forked repository in your GitHub account. · Have Generated the SSH keys. ·...
Read more >
git clone through ssh - Stack Overflow
So at this point you can clone the repository to any machine simply by running git clone <user>@<server>:<relative_path><your_project>.git . (As others have ...
Read more >
How to Clone Using SSH in Git? - Blog - GitProtect.io
SS- keygen Command. Leave both file name and passphrase blank. · SSH and GPG keys. Then find the SSH keys section and click...
Read more >
Cloning a repository - GitHub Docs
To clone the repository using HTTPS, under "HTTPS", click . · To clone the repository using an SSH key, including a certificate issued...
Read more >
How to Clone a Repo with SSH Key in Git - Linux Hint
How to Clone a Repo with SSH Key in Git? · Step 1: Create Repository · Step 2: Open Git Bash · Step...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found