Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Option to show SSH url for cloning a Gist #341

Open
zachriggle opened this issue Sep 3, 2021 · 3 comments
Open

Feature: Option to show SSH url for cloning a Gist #341

zachriggle opened this issue Sep 3, 2021 · 3 comments

Comments

@zachriggle
Copy link

Thanks!

Thanks @defunkt for making such a great tool!

One thing that I've always wanted is the ability to easily update an existing Gist, without using the web UI.

Problem

Similar to #291 from 2018, I think it would be useful for Gist to have the ability to clone a URL.

The process of converting a Gist URL into a clone-able Git URL is simple. In fact, no conversion is needed for regular HTTPS clones -- but then pushing the changes back up is annoying because of HTTPS auth.

Suggestion

I suggest adding a new flag, --ssh that works with e.g. -l/--list. A separate idea might be to emit a full git clone git@... line that can by copy-pasted into the CLI.

  • Assume our Gist is https://gist.github.com/65756b5ac1d031e4e56697889b8c748b
  • The SSH clone URL then becomes what is shown below. The prefix URL scheme changed, but importantly a (required!) .git suffix was added.
    • git clone git@gist.github.com:65756b5ac1d031e4e56697889b8c748b.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@zachriggle and others