2

i am using GIT_SSH_COMMAND and i tried to find whether there is a corresponding git configuration so i could use rather than using the environment variable, though i couldn't find it.

is there a way to use git configuration for GIT_SSH_COMMAND rather than specifying it as an environment variable?

1

2 Answers 2

5

The setting is core.sshCommand, cf. https://git-scm.com/docs/git-config

Sign up to request clarification or add additional context in comments.

Comments

0

core.sshCommand

If this variable is set, git fetch and git push will use the specified command instead of ssh when they need to connect to a remote system. The command is in the same form as the GIT_SSH_COMMAND environment variable and is overridden when the environment variable is set.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.