threads / discuss / 4160

newbie question

Subject: newbie question

## tl;dr

2 messages between May 16, 2006 and May 16, 2006.

replies: 1people: 2as markdown or json

Li Yang-r58472· May 16, 2006, 07:03 UTC · lore
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· May 16, 2006, 07:09 UTC · re: Li Yang-r58472 · lore

Re: newbie question

Hello,
* Li Yang-r58472 (LeoLi@freescale.com) wrote:
Show 7 quoted lines
> 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

← back to recent threads