Does GIT_SSH_COMMAND apply to all git commands that connect to remote?
- From
- Michał Iwanicki <michal.iwanicki@3mdeb.com>
- Date
- Jul 26, 2024, 08:25 UTC
- Message-ID
- <3856e339-3c93-4c29-a668-334bdd7bff7a@3mdeb.com>
I'm asking this question, because in docs it explicitly mentions git fetch and git push. Does it apply do other commands like git clone? If yes then maybe this information should be added?
https://git-scm.com/docs/git/2.45.1#Documentation/git.txt-codeGITSSHCOMMANDcode
> If either of these environment variables is set then git fetch and git push will use the specified command instead of > ssh when they need to connect to a remote system