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

Setting environment variables for git executable #42

Open
domeales-paloit opened this issue Oct 23, 2023 · 1 comment
Open

Setting environment variables for git executable #42

domeales-paloit opened this issue Oct 23, 2023 · 1 comment
Assignees

Comments

@domeales-paloit
Copy link

Hi there,

Is it possible to set the environment variables for the git commands?

I would like to set GIT_SSH_COMMAND like here: https://stackoverflow.com/a/29754018

Is this possible? Can you give me any example?

Thanks,
Dom

@sebastianfeldmann
Copy link
Owner

sebastianfeldmann commented Oct 26, 2023

Currently that's not possible within the library but would be a nice addition.

In the meantime you can use a ssh config file.

Host git.server.com
    IdentityFile ~/.ssh/git.server.private
    IdentitiesOnly yes

And then it should work

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

No branches or pull requests

2 participants