{"thread":{"id":"31364","subject":"exporting a .git file ?","startedAt":"2012-08-27T14:32:40Z","lastAt":"2012-08-27T15:40:17Z","messageCount":8,"participants":["Aaron Gray","Mihamina Rakotomandimby","Dan Johnson","Konstantin Khomoutov","Andreas Schwab","Michael Haggerty"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"197905","messageId":"CANkmNDc7VP4QiocxuB7JMuQyZy5nDT=ertow_ib2Hri_=XRMOA@mail.gmail.com","threadId":"31364","inReplyTo":null,"subject":"exporting a .git file ?","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@gmail.com","sentAt":"2012-08-27T14:32:40Z","receivedAt":"2012-08-27T14:32:40Z","isPatch":false,"sender":{"key":"aaronngray.lists@gmail.com","avatar":null},"body":"Hi,\n\nIs there anyway to get my git repository as a single file ?\n\nMany thanks in advance,\n\nAaron\n"},{"id":"197906","messageId":"503B8597.8040701@rktmb.org","threadId":"31364","inReplyTo":"CANkmNDc7VP4QiocxuB7JMuQyZy5nDT=ertow_ib2Hri_=XRMOA@mail.gmail.com","subject":"Re: exporting a .git file ?","fromName":"Mihamina Rakotomandimby","fromEmail":"mihamina@rktmb.org","sentAt":"2012-08-27T14:35:03Z","receivedAt":"2012-08-27T14:35:03Z","isPatch":false,"sender":{"key":"mihamina@rktmb.org","avatar":"https://gravatar.com/avatar/b52e5d85625fd27eecfea3f3fa827a29140ac806bbdb29d0d79088a55e046a17?d=mp&s=160"},"body":"On 08/27/2012 05:32 PM, Aaron Gray wrote:\n> Is there anyway to get my git repository as a single file ?\n\nWhat is the purpose?\n\".git/\" is a folder...\n\n-- \nRMA.\n"},{"id":"197907","messageId":"CANkmNDd6zPkrL-TueLnGCCyqP6eetxWh5KkL4vLGgUUddZFNhw@mail.gmail.com","threadId":"31364","inReplyTo":"503B8597.8040701@rktmb.org","subject":"Re: exporting a .git file ?","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@gmail.com","sentAt":"2012-08-27T14:39:16Z","receivedAt":"2012-08-27T14:39:16Z","isPatch":false,"sender":{"key":"aaronngray.lists@gmail.com","avatar":null},"body":"On 27 August 2012 15:35, Mihamina Rakotomandimby <mihamina@rktmb.org> wrote:\n> On 08/27/2012 05:32 PM, Aaron Gray wrote:\n>>\n>> Is there anyway to get my git repository as a single file ?\n>\n>\n> What is the purpose?\n> \".git/\" is a folder...\n\nI realize that but I wanted to distribute it as a downloadable file\nwithout having to use a server.\n\nAaron\n"},{"id":"197908","messageId":"CAPBPrnu1FNbWP+k6Nq5NudBFYZu9njjbcL+oL7m-z5sajuXpBg@mail.gmail.com","threadId":"31364","inReplyTo":"CANkmNDc7VP4QiocxuB7JMuQyZy5nDT=ertow_ib2Hri_=XRMOA@mail.gmail.com","subject":"Re: exporting a .git file ?","fromName":"Dan Johnson","fromEmail":"computerdruid@gmail.com","sentAt":"2012-08-27T14:45:40Z","receivedAt":"2012-08-27T14:45:40Z","isPatch":false,"sender":{"key":"computerdruid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/34696?v=4"},"body":"On Mon, Aug 27, 2012 at 10:32 AM, Aaron Gray <aaronngray.lists@gmail.com> wrote:\n> Hi,\n>\n> Is there anyway to get my git repository as a single file ?\n\nYou're probably looking for the git bundle command (see git bundle\n--help), but it's possible you might just want to use tar.\n\nHope that helps,\n-- \n-Dan\n"},{"id":"197909","messageId":"CANkmNDe10dtgtJ2sTJvS_75iY3v75_GCh219+dEOYGBurLaT2g@mail.gmail.com","threadId":"31364","inReplyTo":"CAPBPrnu1FNbWP+k6Nq5NudBFYZu9njjbcL+oL7m-z5sajuXpBg@mail.gmail.com","subject":"Re: exporting a .git file ?","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@gmail.com","sentAt":"2012-08-27T14:48:12Z","receivedAt":"2012-08-27T14:48:12Z","isPatch":false,"sender":{"key":"aaronngray.lists@gmail.com","avatar":null},"body":"On 27 August 2012 15:45, Dan Johnson <computerdruid@gmail.com> wrote:\n> On Mon, Aug 27, 2012 at 10:32 AM, Aaron Gray <aaronngray.lists@gmail.com> wrote:\n>> Hi,\n>>\n>> Is there anyway to get my git repository as a single file ?\n>\n> You're probably looking for the git bundle command (see git bundle\n> --help), but it's possible you might just want to use tar.\n>\n> Hope that helps,\n\nGreat thanks Dan, comes in under 2 megs, thats great.\n\nAaron\n"},{"id":"197910","messageId":"20120827185316.a18222bf90216d87dea9f23a@domain007.com","threadId":"31364","inReplyTo":"CANkmNDc7VP4QiocxuB7JMuQyZy5nDT=ertow_ib2Hri_=XRMOA@mail.gmail.com","subject":"Re: exporting a .git file ?","fromName":"Konstantin Khomoutov","fromEmail":"kostix+git@007spb.ru","sentAt":"2012-08-27T14:53:16Z","receivedAt":"2012-08-27T14:53:16Z","isPatch":false,"sender":{"key":"kostix+git@007spb.ru","avatar":null},"body":"On Mon, 27 Aug 2012 15:32:40 +0100\nAaron Gray <aaronngray.lists@gmail.com> wrote:\n\n> Is there anyway to get my git repository as a single file ?\nDepends on what you really need.\n\nIf you need to export the repository *history* of one or more\nreferences (branches or tags), use `git bundle` to create a\nspecially-formatted file which can be imported using Git on another\nmachine.\n\nIf you need to just export the snapshot of the files maintained in the\nrepository at the specified commit, use `git export`.\n"},{"id":"197911","messageId":"m2r4qsbcdi.fsf@igel.home","threadId":"31364","inReplyTo":"CANkmNDd6zPkrL-TueLnGCCyqP6eetxWh5KkL4vLGgUUddZFNhw@mail.gmail.com","subject":"Re: exporting a .git file ?","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2012-08-27T15:09:13Z","receivedAt":"2012-08-27T15:09:13Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"Aaron Gray <aaronngray.lists@gmail.com> writes:\n\n> I realize that but I wanted to distribute it as a downloadable file\n> without having to use a server.\n\ngit bundle can create a single file from the object database.\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5\n\"And now for something completely different.\"\n"},{"id":"197912","messageId":"503B94E1.5010803@alum.mit.edu","threadId":"31364","inReplyTo":"CAPBPrnu1FNbWP+k6Nq5NudBFYZu9njjbcL+oL7m-z5sajuXpBg@mail.gmail.com","subject":"Re: exporting a .git file ?","fromName":"Michael Haggerty","fromEmail":"mhagger@alum.mit.edu","sentAt":"2012-08-27T15:40:17Z","receivedAt":"2012-08-27T15:40:17Z","isPatch":false,"sender":{"key":"mhagger@alum.mit.edu","avatar":"https://avatars.githubusercontent.com/u/119718?v=4"},"body":"On 08/27/2012 04:45 PM, Dan Johnson wrote:\n> On Mon, Aug 27, 2012 at 10:32 AM, Aaron Gray <aaronngray.lists@gmail.com> wrote:\n>> Hi,\n>>\n>> Is there anyway to get my git repository as a single file ?\n> \n> You're probably looking for the git bundle command (see git bundle\n> --help), but it's possible you might just want to use tar.\n\nPlease note that a \"git bundle\" will contain the contents of the\nrepository (commits, log messages, etc) but not the local configuration\nlike .git/config, .git/info/*, nor some other information like the\nreflogs (history of old values of references).  This is probably what\nyou want.\n\nA \"tar\" of the .git directory, by contrast, would include this local\ninformation unless you exclude it explicitly.\n\nMichael\n\n-- \nMichael Haggerty\nmhagger@alum.mit.edu\nhttp://softwareswirl.blogspot.com/\n"}]}