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

Re: Cloning remotely under git for Windows not working

From
EEErik Cervin Edin <erik@cervined.in>
Date
Oct 21, 2022, 06:06 UTC
Message-ID
<CA+JQ7M-7qEu8ooQp_g1+5pownA13VbPvJQSb-snKP3=7yfyCEw@mail.gmail.com>
In-Reply-To
<46A1CB40-BBEE-43FC-9626-588718518B4A@gmail.com>

On Fri, Oct 21, 2022 at 12:00 AM W. Ekkehard Blanz <ekkehard.blanz@gmail.com> wrote:

>
> How do I convince git to use Powershell as its shell of choice when it arrives over ssh at my target Windows box?  Unfortunately,
>     git help clone
> Does not give me any indication how to do that.

AFAIK, the remote choses the default shell of ssh sessions so you either change that or somehow launch a different subshell with the client. The former should be easier https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration the latter is talked about somewhere in here https://github.com/PowerShell/Win32-OpenSSH/issues/752 if my memory serves me correctly. I chose the former

Previous: W. Ekkehard BlanzNext: W. Ekkehard Blanz
Message 6 of 9 in “Cloning remotely under git for Windows not working”
  1. W. Ekkehard BlanzOct 20, 2022
  2. Torsten BögershausenOct 20, 2022
  3. Erik Cervin EdinOct 20, 2022
  4. Erik Cervin EdinOct 20, 2022
  5. W. Ekkehard BlanzOct 20, 2022
  6. Erik Cervin EdinOct 21, 2022
  7. W. Ekkehard BlanzOct 22, 2022
  8. Erik Cervin EdinOct 21, 2022
  9. W. Ekkehard BlanzOct 20, 2022

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.