Re: git status takes 30 seconds on Windows 7. Why?
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Mar 28, 2013, 01:19 UTC
- Message-ID
- <CACsJy8BgLpTPPzNPo9EQiUQq_s9Lru=ZsS+1B0CmU=5XjcHs-g@mail.gmail.com>
- In-Reply-To
- <CAFT1WNyyXbCOQWMt8nYife7Tix_mJzDQrj5e+N=GKbDR8OyYzQ@mail.gmail.com>
On Wed, Mar 27, 2013 at 11:39 PM, Jim Kinsman <jakinsman@gmail.com> wrote:
Show 13 quoted lines
> git status takes 30 seconds on Windows 7. Here are some stats: > git ls-files | wc -l > 27330 > > git ls-files -o | wc -l > 4 > > $ git diff --name-only | xargs du -chs > 68K update_import_contacts.php > 68K total > > What can I do??? This is so slow it is unbearable. > By the way i've done git gc several times and nothing changed.
You can try "status -uno" to skip showing untracked files (and may be do without -uno before commit so you don't miss files). You may also try core.ignoreStat (but I think it's not very convenient to use)
-- Duy