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

Re: git bundle unbundle and "check-outable" refs

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 29, 2011, 16:49 UTC
Message-ID
<7vsjnfthtk.fsf@alter.siamese.dyndns.org>
In-Reply-To
<dec8c877-bd6e-4120-b045-87179d54abe2@i30g2000yqd.googlegroups.com>
"Todd A. Jacobs" <nospam+listmail@codegnome.org> writes:
> directly to the local repository, but doesn't give me any of the
> branch refs that I'm expecting from such an operation. In other words,
> if I bundle branch foo on machine A, then unbundle on machine B, I
> expect to be able to "git checkout foo" and get on with life.
$ git bundle -h
usage: git bundle create <file> <git-rev-list args>
   or: git bundle verify <file>
   or: git bundle list-heads <file> [<refname>...]
   or: git bundle unbundle <file> [<refname>...]

$ git bundle list-heads /var/tmp/junk/foo.bundle 632052641517de1a965c1f045b97d2eaa541b2e9 refs/heads/maint

$ git fetch /var/tmp/junk/foo.bundle maint
From /var/tmp/junk/foo.bundle
 * branch            maint      -> FETCH_HEAD
or

$ git fetch /var/tmp/junk/foo.bundle maint:bundle_head $ git log bundle_head

Previous: Todd A. JacobsNext: Jakub Narebski
Message 2 of 3 in “git bundle unbundle and "check-outable" refs”
  1. Todd A. JacobsSep 29, 2011
  2. Junio C HamanoSep 29, 2011
  3. Jakub NarebskiSep 29, 2011

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.