# newbie question

2 messages from 2006-05-16 to 2006-05-16. Participants: Li Yang-r58472, Matthias Kestenholz.
Thread: https://gitlist.dev/t/4160

## Li Yang-r58472, 2006-05-16 07:03

Subject: newbie question
Message-ID: <9FCDBA58F226D911B202000BDBAD467308146E@zch01exm40.ap.freescale.net>
URL: https://gitlist.dev/e/9FCDBA58F226D911B202000BDBAD467308146E%40zch01exm40.ap.freescale.net

```
I just starting to use git recently.  I have setup a public repository, and pushed cloned open source repository to it.  As most documents suggested, I need to run a repack on the public repository.  Normally git-repack is run in the source directory(the parent directory of .git).  Considering the public repository, there is no source directory and the *.git is the uppest level directory.  Where am I supposed to run the git-repack command?

```

## Matthias Kestenholz, 2006-05-16 07:09

Subject: Re: newbie question
Message-ID: <20060516070915.GA4680@spinlock.ch>
URL: https://gitlist.dev/e/20060516070915.GA4680%40spinlock.ch
In-Reply-To: <9FCDBA58F226D911B202000BDBAD467308146E@zch01exm40.ap.freescale.net>

```
Hello,

* Li Yang-r58472 (LeoLi@freescale.com) wrote:
> I just starting to use git recently.  I have setup a public repository,
> and pushed cloned open source repository to it.  As most documents 
> suggested, I need to run a repack on the public repository.  Normally 
> git-repack is run in the source directory(the parent directory of .git).  
> Considering the public repository, there is no source directory and the
> *.git is the uppest level directory.  Where am I supposed to run the
> git-repack command?

Do it like that:

$ ls
project.git
$ GIT_DIR=project.git git-repack -a -d

```
