Skip to content

Local commits are significantly slower than eg. VS Code (5s in Fork compared to <1s for VS Code for small local repo) #2611

@tkafka

Description

@tkafka

I seem to never be able to push the local commit time under 5 seconds, while the VS Code git client commits the similar commits to a same repo practically instantly.

M1 Pro, macOS Tahoe (but it has been the same on the previous version), and there is no CPU usage spike during the commit.

The log just says:

$ git commit --file=/var/folders/f7/62727y2d6fl4hb_qjp_2gqlm0000gn/T/063AE1AC-54AD-46BC-9EC1-B4DE5EA48C90

[main 48e3580] lint
 6 files changed, 12 insertions(+), 11 deletions(-)

There are no hooks, just a plain repo with a small (about 30 files) project.

These are my settings:

Image

Is there anything I can to to make the commits faster? I run into this when I make a bunch of changes that I want to split into commits, and now each such commit session is slowed by waiting for the tool to finish a step that should be quite trivial.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions