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?
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