git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: question about git and remote repositories

From
Avery Pennarun <apenwarr@gmail.com>
Date
Apr 8, 2008, 20:24 UTC
Message-ID
<32541b130804081324q7555aff5ia123512db014e24f@mail.gmail.com>
In-Reply-To
<47FBC2C9.6060702@tikalk.com>
On Tue, Apr 8, 2008 at 3:08 PM, Ittay Dror <ittayd@tikalk.com> wrote:
Show 5 quoted lines
> 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)

It can be quite addictive to have the entire revision history of the entire project sitting locally on your disk. Once you've tried it, it's hard to go back. :)

But if you still want only the last few revisions, try using the --depth option to git-clone.

Have fun,
Avery
Previous: Michele Ballabio
Message 3 of 3 in “question about git and remote repositories”
  1. Ittay DrorApr 8, 2008
  2. Michele BallabioApr 8, 2008
  3. Avery PennarunApr 8, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.