Experience shows that this happens when there are too many non-versioned files.
Unchecking "Show Unversioned Files" helped me. You can also use “add to ignore list” to exclude directories that should not be captured with git.