* Git repository clonning
@ 2012-02-17 11:21 Martin Přecechtěl
2012-02-17 12:59 ` Jakub Narebski
0 siblings, 1 reply; 2+ messages in thread
From: Martin Přecechtěl @ 2012-02-17 11:21 UTC (permalink / raw)
To: git
To Whom It May Concern,
I have a problem and I would like to ask you for help. I need to somehow
access the git repositry over network and read files from it. In the
concrete, only thing I need is to read some files from repository, where
I have files needed for installation of computers. So on computer where
installation takes place, I need to read from this repository some files
needed for installation process. I tried command git clone
<my_repository> but this command download the whole repository which
size is now almost 8GB files + 4GB .git folder. This process is very
slow. So I want to ask you if there is a way how to access my repository
(read some files from it) but to significantly improve speed. Is there
for example something what will somehow map the repository to folder and
then dowload only thouse files which are accessed?
I would appreciate any help.
Thank you for your time,
Yours faithfully,
Martin Precechtel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Git repository clonning
2012-02-17 11:21 Git repository clonning Martin Přecechtěl
@ 2012-02-17 12:59 ` Jakub Narebski
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Narebski @ 2012-02-17 12:59 UTC (permalink / raw)
To: Martin Přecechtěl; +Cc: git
Martin Přecechtěl <precechtel@gmail.com> writes:
> I have a problem and I would like to ask you for help. I need to
> somehow access the git repository over network and read files from
> it. In the concrete, only thing I need is to read some files from
> repository, where I have files needed for installation of
> computers. So on computer where installation takes place, I need to
> read from this repository some files needed for installation
> process.
Where this repository is? Is it on computer you control? If yes, why
not use some networking filesystem or just rsync checked out files?
> I tried command git clone <my_repository> but this command
> download the whole repository which size is now almost 8GB files + 4GB
> .git folder. This process is very slow. So I want to ask you if there
> is a way how to access my repository (read some files from it) but to
> significantly improve speed. Is there for example something what will
> somehow map the repository to folder and then dowload only thouse
> files which are accessed?
You can try to use shallow clone, which would download only tip of
history... but all the files:
$ git clone --depth=0 <URL>
If remote repository is configured correctly, and all the files are
inside one directory, you can try to use remote archive:
$ git archive --remote=<URL> --prefix=<dir>/ --output=<dir>.tar \
HEAD:<dir>
It wouldprobably not work.
If there is some web interface, like gitweb or GitHub, you can
download snapshots of some subdirectory from there.
HTH
--
Jakub Narębski
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-17 12:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-17 11:21 Git repository clonning Martin Přecechtěl
2012-02-17 12:59 ` Jakub Narebski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.