# git local repo export

4 messages from 2008-06-08 to 2008-06-17. Participants: Cyrill Gorcunov, Sebastian Harl, helight.xu.
Thread: https://gitlist.dev/t/13860

## Cyrill Gorcunov, 2008-06-08 13:46

Subject: git local repo export
Message-ID: <20080608134601.GA7020@cvg>
URL: https://gitlist.dev/e/20080608134601.GA7020%40cvg

```
Hi,

could someone say me if there is a way to pack git repo in a single file somehow?
I mean - sometime I have to move _whole_ git database by some media without net
access so I can't fetch it. Usually I just create tar.gz for .git directory and
copy it to some media then unpack it in place where I need. But maybe there is
some other more elegant way exist to do the same?

Thanks in advace, please CC me since I'm not subscribed to git list.

		- Cyrill -

```

## Sebastian Harl, 2008-06-08 13:59

Subject: Re: git local repo export
Message-ID: <20080608135949.GE19777@albany.tokkee.org>
URL: https://gitlist.dev/e/20080608135949.GE19777%40albany.tokkee.org
In-Reply-To: <20080608134601.GA7020@cvg>

```
Hi Cyrill,

On Sun, Jun 08, 2008 at 05:46:01PM +0400, Cyrill Gorcunov wrote:
> could someone say me if there is a way to pack git repo in a single
> file somehow?  I mean - sometime I have to move _whole_ git database
> by some media without net access so I can't fetch it. Usually I just
> create tar.gz for .git directory and copy it to some media then unpack
> it in place where I need. But maybe there is some other more elegant
> way exist to do the same?

Imho, that's a fairly elegant way to do that.

You might want to have a look at git-bundle as well. However, that's not
suited for moving the whole repository, but rather to exchange patches
without being able to use any network based protocols.

HTH,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin


```

## Cyrill Gorcunov, 2008-06-08 14:01

Subject: Re: git local repo export
Message-ID: <20080608140122.GB7020@cvg>
URL: https://gitlist.dev/e/20080608140122.GB7020%40cvg
In-Reply-To: <20080608135949.GE19777@albany.tokkee.org>

```
[Sebastian Harl - Sun, Jun 08, 2008 at 03:59:49PM +0200]
| Hi Cyrill,
| 
| On Sun, Jun 08, 2008 at 05:46:01PM +0400, Cyrill Gorcunov wrote:
| > could someone say me if there is a way to pack git repo in a single
| > file somehow?  I mean - sometime I have to move _whole_ git database
| > by some media without net access so I can't fetch it. Usually I just
| > create tar.gz for .git directory and copy it to some media then unpack
| > it in place where I need. But maybe there is some other more elegant
| > way exist to do the same?
| 
| Imho, that's a fairly elegant way to do that.
| 
| You might want to have a look at git-bundle as well. However, that's not
| suited for moving the whole repository, but rather to exchange patches
| without being able to use any network based protocols.
| 
| HTH,
| Sebastian
| 
| -- 
| Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
| 
| Those who would give up Essential Liberty to purchase a little Temporary
| Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin
| 

Thanks a lot!

		- Cyrill -

```

## helight.xu, 2008-06-17 07:05

Subject: fatal: Not a valid object name: 'master'.
Message-ID: <48576241.1070409@gmail.com>
URL: https://gitlist.dev/e/48576241.1070409%40gmail.com
In-Reply-To: <20080608135949.GE19777@albany.tokkee.org>

```
Hi everyone here,

    I manger my websit with git,but today I cann't use it anymore.

fatal: Not a valid object name: 'master'.

How can i do,anyone can help me?

```
