You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to manage my remotes with the gh tool.
For instance, gh remote add cli/cli (or similar) could be equivalent to git remote add cli git@github.com:cli/cli.git. Ideally such a command could respect the user's choice of protocol.
This would save me from opening a web browser to press the clone button and copy the URL. I could 'simply' memorize the URL format and type it in, but I am lazy and gh has tab completion. :)
@9999years I don't think adding a command for managing git remotes belongs in gh as it is not meant to be a git wrapper but rather a tool to use in conjunction with it. Having said that gh does have the repo clone command which will properly set up git remotes for you. Have you tried using that?
Yes, I use gh repo clone frequently! However, gh repo clone cannot add a remote to an existing repository (most frequently I want to add another remote when there's a new fork I want to pull from).
@9999years I understand better now, thanks for clarifying. Do you think #1027 covers the feature you are looking for? If so I think we can close this one out as it is already being tracked in the other issue.
I'd like to be able to manage my remotes with the
gh
tool.For instance,
gh remote add cli/cli
(or similar) could be equivalent togit remote add cli git@github.com:cli/cli.git
. Ideally such a command could respect the user's choice of protocol.This would save me from opening a web browser to press the clone button and copy the URL. I could 'simply' memorize the URL format and type it in, but I am lazy and
gh
has tab completion. :)(N.b. the soft-deprecated
hub
tool also doesn't provide tools for managing remotes.)The text was updated successfully, but these errors were encountered: