From: Michele Ballabio <barra_cuda@katamail.com>
To: git@vger.kernel.org
Cc: Ittay Dror <ittayd@tikalk.com>
Subject: Re: question about git and remote repositories
Date: Tue, 8 Apr 2008 22:08:25 +0200 [thread overview]
Message-ID: <200804082208.26220.barra_cuda@katamail.com> (raw)
In-Reply-To: <47FBC2C9.6060702@tikalk.com>
On Tuesday 08 April 2008, Ittay Dror wrote:
> If I want to start working on a project that uses git (and I want to use
> git also), I first need to clone the project's repo. That is very slow
> (using the git:// protocol). Are there alternatives? For example, as far
> as I understand, if all I want is to get the latest commit in HEAD,
> branch from it and start working, then all git really needs to have is
> all objects referenced from that commit (commit, trees, blobs) and
> that's it, right? (as long as I don't expect to see full log of past
> operations)
In git terms, that is called a "shallow clone". For example:
git clone --depth 5 git://site.com/repo.git
would clone all the heads of repo.git along with their 5 most
recent commits.
You can make history deeper with
git-fetch --depth 20 git://site.com/repo.git branch
See the glossary, technical/shallow.txt, git-clone and git-fetch
man pages.
next prev parent reply other threads:[~2008-04-08 20:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 19:08 question about git and remote repositories Ittay Dror
2008-04-08 20:08 ` Michele Ballabio [this message]
2008-04-08 20:24 ` Avery Pennarun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200804082208.26220.barra_cuda@katamail.com \
--to=barra_cuda@katamail.com \
--cc=git@vger.kernel.org \
--cc=ittayd@tikalk.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).