From: Erik Cervin Edin Date: Fri, 21 Oct 2022 06:06:21 GMT Subject: Re: Cloning remotely under git for Windows not working Message-ID: In-Reply-To: <46A1CB40-BBEE-43FC-9626-588718518B4A@gmail.com> On Fri, Oct 21, 2022 at 12:00 AM W. Ekkehard Blanz 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