Re: git branch performance problem?
- From
Han-Wen Nienhuys <hanwenn@gmail.com>
- Date
- Oct 10, 2007, 21:24 UTC
- Message-ID
- <f329bf540710101424q22309489sada99907e94b2cd0@mail.gmail.com>
- In-Reply-To
- <f329bf540710101417w640b2421v73279cc8e34449b8@mail.gmail.com>
2007/10/10, Han-Wen Nienhuys <hanwenn@gmail.com>:
Show 9 quoted lines
> > You probably want to run 'git gc' (which will run 'git pack-refs', > > i.e. put all files currently under .git/refs into a single file). This > > should speed up 'git branch' (and quite possibly other commands too). > > This seems rather unuseful. After running gc pack-refs --all, I lost my HEAD, > > hanwen@lilypond:~/vc/git5$ git show HEAD > fatal: ambiguous argument 'HEAD': unknown revision or path not in the > working tree.
More to the point, I seemed to have lost my entire repository. This is the type of surprise I don't enjoy.
Now, can someone explain why 'git branch' takes forever if there are only two non-remote branches ?
-- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen