Slow Git Operations

I have a test repository that I put under Git. Most files are quite small, but there are a lot of them, and just Git operations, such as adding and status, take tens of minutes. What are my options for controlling versions and getting reasonable performance? Should I try to use submodules or should I avoid DVCSes?

+5
source share
2 answers

Git operations are type addand statusrequire statevery file in the file system (to detect changes). Either you have a really huge number of files (say, tens or hundreds of thousands of files), or you have a file system with a rather slow operation stat.

, , , " " , Git stat . , Git , . git add, Git . , git config core.ignoreStat true, - git reset --hard HEAD.

+12

, " " . , git , . , , , - , - . , , , Subversion, .

EDIT: , , NFS, . , . core.preloadindex.

:

core.preloadindex

git diff

git diff git, , NFS, , , -. true, git , IO.

EDIT2: 6 . , - .

+7

All Articles