# git ls-remote windows issue.

3 messages from 2022-11-27 to 2022-11-27. Participants: Kirill Frolov, rsbecker@nexbridge.com, Philip Oakley.
Thread: https://gitlist.dev/t/58861

## Kirill Frolov, 2022-11-27 18:25

Subject: git ls-remote windows issue.
Message-ID: <16587f28-bd73-39ba-04da-bd0e2240f48c@gmail.com>
URL: https://gitlist.dev/e/16587f28-bd73-39ba-04da-bd0e2240f48c%40gmail.com

```
When i run  "git ls-remote `origin` HEAD" on windows machine i get 
"fatal: ''origin'' does not appear to be a git repository"

When i run the same command on same repository on linux machine i get 
"b7efcb7055a6d45f53c05270a2420aaedaba4d02        HEAD"



```

## rsbecker@nexbridge.com, 2022-11-27 18:38

Subject: RE: git ls-remote windows issue.
Message-ID: <01c001d9028f$69c86560$3d593020$@nexbridge.com>
URL: https://gitlist.dev/e/01c001d9028f%2469c86560%243d593020%24%40nexbridge.com
In-Reply-To: <16587f28-bd73-39ba-04da-bd0e2240f48c@gmail.com>

```
On November 27, 2022 1:26 PM, Kirill Frolov wrote:
>When i run  "git ls-remote `origin` HEAD" on windows machine i get
>"fatal: ''origin'' does not appear to be a git repository"
>
>When i run the same command on same repository on linux machine i get
>"b7efcb7055a6d45f53c05270a2420aaedaba4d02        HEAD"

Try removing the quote characters around origin under Windows. I can reproduce this on Linux using "'origin'", so it appears that the single quotes in your Windows command prompt are being passed in with origin instead of removed as in Linux.

-Randall


```

## Philip Oakley, 2022-11-27 18:48

Subject: Re: git ls-remote windows issue.
Message-ID: <161a40eb-2439-bb38-6082-4379aa9be848@iee.email>
URL: https://gitlist.dev/e/161a40eb-2439-bb38-6082-4379aa9be848%40iee.email
In-Reply-To: <16587f28-bd73-39ba-04da-bd0e2240f48c@gmail.com>

```
On 27/11/2022 18:25, Kirill Frolov wrote:
> When i run  "git ls-remote `origin` HEAD" on windows machine i get
> "fatal: ''origin'' does not appear to be a git repository"
>

Are those the right quote marks? Were the commands directly copy/pasted?
Note how the report (as received) has back quotes for the command, and
then double quoting of ''origin'' on the error resport.

> When i run the same command on same repository on linux machine i get
> "b7efcb7055a6d45f53c05270a2420aaedaba4d02        HEAD"
>
>
--
Philip

```
