Skip to content

git commit -a failing consistently on windows #385

@erys

Description

@erys

With no changes in my repo and prefligit installed on pre commit hook:

➜  rust-webnovel git:(main) git commit -a
error: command `git write-tree` exited with an error:

[status]
exit code: 128

[stderr]
fatal: Unable to create 'C:/Users/Eli/Documents/GitHub/rust-webnovel/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
➜  rust-webnovel git:(main) prefligit -V
prefligit 0.0.21 (3c40b0032 2025-08-06)

On windows 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions