Allow to clone via SSH
See original GitHub issueDescription
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:
- Created 6 years ago
- Reactions:79
- Comments:22 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Expanding on @joshaber 's comment, the workaround can be performed with
git config --global url."git@github.com:".insteadOf https://github.com/