* exporting a .git file ?
@ 2012-08-27 14:32 Aaron Gray
2012-08-27 14:35 ` Mihamina Rakotomandimby
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Aaron Gray @ 2012-08-27 14:32 UTC (permalink / raw)
To: Git Mailing List
Hi,
Is there anyway to get my git repository as a single file ?
Many thanks in advance,
Aaron
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: exporting a .git file ?
2012-08-27 14:32 exporting a .git file ? Aaron Gray
@ 2012-08-27 14:35 ` Mihamina Rakotomandimby
2012-08-27 14:39 ` Aaron Gray
2012-08-27 14:45 ` Dan Johnson
2012-08-27 14:53 ` Konstantin Khomoutov
2 siblings, 1 reply; 8+ messages in thread
From: Mihamina Rakotomandimby @ 2012-08-27 14:35 UTC (permalink / raw)
To: git@vger.kernel.org
On 08/27/2012 05:32 PM, Aaron Gray wrote:
> Is there anyway to get my git repository as a single file ?
What is the purpose?
".git/" is a folder...
--
RMA.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: exporting a .git file ?
2012-08-27 14:32 exporting a .git file ? Aaron Gray
2012-08-27 14:35 ` Mihamina Rakotomandimby
@ 2012-08-27 14:45 ` Dan Johnson
2012-08-27 14:48 ` Aaron Gray
2012-08-27 15:40 ` Michael Haggerty
2012-08-27 14:53 ` Konstantin Khomoutov
2 siblings, 2 replies; 8+ messages in thread
From: Dan Johnson @ 2012-08-27 14:45 UTC (permalink / raw)
To: Aaron Gray; +Cc: Git Mailing List
On Mon, Aug 27, 2012 at 10:32 AM, Aaron Gray <aaronngray.lists@gmail.com> wrote:
> Hi,
>
> Is there anyway to get my git repository as a single file ?
You're probably looking for the git bundle command (see git bundle
--help), but it's possible you might just want to use tar.
Hope that helps,
--
-Dan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: exporting a .git file ?
2012-08-27 14:45 ` Dan Johnson
@ 2012-08-27 14:48 ` Aaron Gray
2012-08-27 15:40 ` Michael Haggerty
1 sibling, 0 replies; 8+ messages in thread
From: Aaron Gray @ 2012-08-27 14:48 UTC (permalink / raw)
To: Dan Johnson; +Cc: Git Mailing List
On 27 August 2012 15:45, Dan Johnson <computerdruid@gmail.com> wrote:
> On Mon, Aug 27, 2012 at 10:32 AM, Aaron Gray <aaronngray.lists@gmail.com> wrote:
>> Hi,
>>
>> Is there anyway to get my git repository as a single file ?
>
> You're probably looking for the git bundle command (see git bundle
> --help), but it's possible you might just want to use tar.
>
> Hope that helps,
Great thanks Dan, comes in under 2 megs, thats great.
Aaron
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: exporting a .git file ?
2012-08-27 14:45 ` Dan Johnson
2012-08-27 14:48 ` Aaron Gray
@ 2012-08-27 15:40 ` Michael Haggerty
1 sibling, 0 replies; 8+ messages in thread
From: Michael Haggerty @ 2012-08-27 15:40 UTC (permalink / raw)
To: Dan Johnson; +Cc: Aaron Gray, Git Mailing List
On 08/27/2012 04:45 PM, Dan Johnson wrote:
> On Mon, Aug 27, 2012 at 10:32 AM, Aaron Gray <aaronngray.lists@gmail.com> wrote:
>> Hi,
>>
>> Is there anyway to get my git repository as a single file ?
>
> You're probably looking for the git bundle command (see git bundle
> --help), but it's possible you might just want to use tar.
Please note that a "git bundle" will contain the contents of the
repository (commits, log messages, etc) but not the local configuration
like .git/config, .git/info/*, nor some other information like the
reflogs (history of old values of references). This is probably what
you want.
A "tar" of the .git directory, by contrast, would include this local
information unless you exclude it explicitly.
Michael
--
Michael Haggerty
mhagger@alum.mit.edu
http://softwareswirl.blogspot.com/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: exporting a .git file ?
2012-08-27 14:32 exporting a .git file ? Aaron Gray
2012-08-27 14:35 ` Mihamina Rakotomandimby
2012-08-27 14:45 ` Dan Johnson
@ 2012-08-27 14:53 ` Konstantin Khomoutov
2 siblings, 0 replies; 8+ messages in thread
From: Konstantin Khomoutov @ 2012-08-27 14:53 UTC (permalink / raw)
To: Aaron Gray; +Cc: Git Mailing List
On Mon, 27 Aug 2012 15:32:40 +0100
Aaron Gray <aaronngray.lists@gmail.com> wrote:
> Is there anyway to get my git repository as a single file ?
Depends on what you really need.
If you need to export the repository *history* of one or more
references (branches or tags), use `git bundle` to create a
specially-formatted file which can be imported using Git on another
machine.
If you need to just export the snapshot of the files maintained in the
repository at the specified commit, use `git export`.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-08-27 15:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-27 14:32 exporting a .git file ? Aaron Gray
2012-08-27 14:35 ` Mihamina Rakotomandimby
2012-08-27 14:39 ` Aaron Gray
2012-08-27 15:09 ` Andreas Schwab
2012-08-27 14:45 ` Dan Johnson
2012-08-27 14:48 ` Aaron Gray
2012-08-27 15:40 ` Michael Haggerty
2012-08-27 14:53 ` Konstantin Khomoutov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).