Re: git branch performance problem?
- From
- Lars Hjemli <hjemli@gmail.com>
- Date
- Oct 10, 2007, 20:44 UTC
- Message-ID
- <8c5c35580710101344t3aed4214h4f999072483c4cb5@mail.gmail.com>
- In-Reply-To
- <f329bf540710101322xdea6210x5576779f2efd89b7@mail.gmail.com>
On 10/10/07, Han-Wen Nienhuys <hanwenn@gmail.com> wrote:
> I'm seeing very slow performance with 'git-branch'. Is this the > canonical way to find out the current branch?
You could also try 'git symbolic-ref HEAD', but see below...
> hanwen@lilypond:/tmp/z$ find .git/refs/remotes | wc -l > 1856
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).
-- larsh