# Fetching a single file from remote repo

2 messages from 2007-08-13 to 2007-08-13. Participants: Dmitry Kakurin.
Thread: https://gitlist.dev/t/9514

## Dmitry Kakurin, 2007-08-13 18:31

Subject: Fetching a single file from remote repo
Message-ID: <a1bbc6950708131131q74525060x85d5e31c6a538f76@mail.gmail.com>
URL: https://gitlist.dev/e/a1bbc6950708131131q74525060x85d5e31c6a538f76%40mail.gmail.com

```
Is there a way to fetch a single file from remote repo without
creating a client repo?
I want to do something like
  git show --repo git://repo.or.cz/bla.git master:/somedir/file.txt

-- 
- Dmitry

```

## Dmitry Kakurin, 2007-08-13 22:38

Subject: Re: Fetching a single file from remote repo
Message-ID: <a1bbc6950708131538n364f6a82l34b00baa1d751d48@mail.gmail.com>
URL: https://gitlist.dev/e/a1bbc6950708131538n364f6a82l34b00baa1d751d48%40mail.gmail.com
In-Reply-To: <a1bbc6950708131131q74525060x85d5e31c6a538f76@mail.gmail.com>

```
On 8/13/07, Dmitry Kakurin <dmitry.kakurin@gmail.com> wrote:
> Is there a way to fetch a single file from remote repo without
> creating a client repo?
> I want to do something like
>  git show --repo git://repo.or.cz/bla.git master:/somedir/file.txt

I think I have found it:
git archive --remote=http://62.24.64.27/r/msysgit.git
master:share/GitMe setup-msysgit.sh | tar -x

-- 
- Dmitry

```
