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

Re: reducing object store size with remote alternates or shallow clone?

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 24, 2010, 18:59 UTC
Message-ID
<7vfwy3vnti.fsf@alter.siamese.dyndns.org>
In-Reply-To
<2dePxmEZeCbs4IkjGd-Ig2cma8lknd0XEwVdaypeAxtQDY3EZeSEPA@cipher.nrlssc.navy.mil>
Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil> writes:
Show 13 quoted lines
> On 08/24/2010 11:45 AM, Junio C Hamano wrote:
>
>> How about doing
>> 
>>     $ LINUS=git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
>
>>     $ git fetch $LINUS
>>     $ git bundle create myfork.bundle HEAD..master
>
> I think you mean
>
>       $ git fetch $LINUS master
>       $ git bundle create myfork.bundle FETCH_HEAD..master
Thanks, of course you are right.

Strictly speaking, as I know there is only one branch in the repository of Linus, there is no need to say "master" when fetching, but it would be a good discipline to explicitly specify what you mean on the command line.

Previous: Brandon CaseyNext: Brandon Casey
Message 4 of 13 in “reducing object store size with remote alternates or shallow clone?”
  1. Kumar GalaAug 24, 2010
  2. Junio C HamanoAug 24, 2010
  3. Brandon CaseyAug 24, 2010
  4. Junio C HamanoAug 24, 2010
  5. Brandon CaseyAug 24, 2010
  6. 1/2 t/t5510: demonstrate failure to fetch when current branch has merge refBrandon Casey, Aug 25, 2010
  7. Junio C HamanoAug 25, 2010
  8. 2/2 builtin/fetch.c: ignore merge config when not fetching from branch's remoteBrandon Casey, Aug 25, 2010
  9. Jonathan NiederAug 25, 2010
  10. Brandon CaseyAug 25, 2010
  11. Junio C HamanoAug 25, 2010
  12. 1/2 builtin/fetch.c: comment that branch->remote_name is usable when has_mergeBrandon Casey, Sep 9, 2010
  13. 2/2 t/t5510-fetch.sh: improve testing with explicit URL and merge specBrandon Casey, Sep 9, 2010

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.