Skip to content

gh repo clone is able to set ssh remote? #1425

@RafaelGSS

Description

@RafaelGSS

Describe the feature or problem you’d like to solve

Hi everyone!

Today the gh repo clone <user/repo> gets the repository remote from https. I use 2FA Auth so when I need to commit to the repository the cli needs the username and password, but the password must pass the token+password and turns harder to use this command instead of git clone git@github.....

Checking the docs flags do not show an option to clone from ssh.

Additional context

gh version 0.11.0 (2020-07-16)
https://github.com/cli/cli/releases/tag/v0.11.0
DISTRIB_DESCRIPTION="Linux Mint 19.2 Tina"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions