git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Does GIT_SSH_COMMAND apply to all git commands that connect to remote?

From
MIMichał 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
Next: Junio C Hamano
Message 1 of 2 in “Does GIT_SSH_COMMAND apply to all git commands that connect to remote?”
  1. Michał IwanickiJul 26, 2024
  2. Junio C HamanoJul 26, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.