threads / discuss / 9514

Fetching a single file from remote repo

Subject: Fetching a single file from remote repo

## tl;dr

2 messages between Aug 13, 2007 and Aug 13, 2007.

replies: 1people: 1as markdown or json

Dmitry Kakurin· Aug 13, 2007, 18:31 UTC · lore
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· Aug 13, 2007, 22:38 UTC · re: Dmitry Kakurin · lore

Re: Fetching a single file from remote repo

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

← back to recent threads