Skip to content

Support for host aliases in ~/.ssh/config #283

Description

@j-magnolia

Currently, gert does not support git remote ssh URLS that reference aliases defined in ~/.ssh/config. It would be nice if it were possible to support this, but it's also very possible to work around this limitation.

Desired use case:

~/.ssh/config contains

Host: my-git-server
Hostname: git.mydomain.com
User: git
IdentityFile: my-git/id_ed25519

and git remote -v returns

origin  my-git-server:myself/myrepo.git (fetch)
origin  my-git-server:myself/myrepo.git (push)

Wishing for gert::git_push(), gert::git_pull(), etc. to work with this use case.

It may not be possible, or it may be very difficult to do this with the libgit2 API, so a #wontfix response would be reasonable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions