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

[PATCH 2/3] git-bundle.txt: Bundles as [remote ""] is a feature, not an example

From
SBSanti Béjar <sbejar@gmail.com>
Date
Feb 24, 2008, 13:42 UTC
Message-ID
<1203860541-12365-1-git-send-email-sbejar@gmail.com>
In-Reply-To
<1203860474-12291-1-git-send-email-sbejar@gmail.com>
Signed-off-by: Santi Béjar <sbejar@gmail.com>
---
 Documentation/git-bundle.txt |   38 ++++++++++++++++++++------------------
 1 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/Documentation/git-bundle.txt b/Documentation/git-bundle.txt
index 72f080a..1143cdc 100644
--- a/Documentation/git-bundle.txt
+++ b/Documentation/git-bundle.txt
@@ -92,6 +92,26 @@ It is okay to err on the side of conservatism, causing the bundle file
 to contain objects already in the destination as these are ignored
 when unpacking at the destination.
 
+REMOTES
+-------
+
+With something like this in your config:
+
+[remote "bundle"]
+    url = /path/to/file.bdl
+    fetch = refs/heads/*:refs/remotes/bundle/*
+
+You can place a bundle in /path/to/file.bdl and then these commands:
+
+------------
+$ git ls-remote bundle
+$ git fetch bundle
+$ git pull bundle
+------------
+
+would treat it as if it is talking with a remote side over the
+network.
+
 EXAMPLE
 -------
 
@@ -121,24 +141,6 @@ $ git-fetch mybundle  refspec
 where refspec is refInBundle:localRef
 
 
-Also, with something like this in your config:
-
-[remote "bundle"]
-    url = /home/me/tmp/file.bdl
-    fetch = refs/heads/*:refs/remotes/origin/*
-
-You can first sneakernet the bundle file to ~/tmp/file.bdl and
-then these commands:
-
-------------
-$ git ls-remote bundle
-$ git fetch bundle
-$ git pull bundle
-------------
-
-would treat it as if it is talking with a remote side over the
-network.
-
 Author
 ------
 Written by Mark Levedahl <mdl123@verizon.net>
-- 
1.5.4.3.293.gac81
Previous: Santi BéjarNext: Santi Béjar
Message 3 of 4 in “Enhancements to the bundle documentation”
  1. 0/3 Enhancements to the bundle documentationSanti Béjar, Feb 24, 2008
  2. 1/3 urls.txt: Add bundles to the list of local urls.Santi Béjar, Feb 24, 2008
  3. 2/3 git-bundle.txt: Bundles as [remote ""] is a feature, not an exampleSanti Béjar, Feb 24, 2008
  4. 3/3 git-bundle.txt: Add different strategies to create the bundleSanti Béjar, Feb 24, 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.