Cursor is incessantly blocking, by "git commit", a path that is not open on workspace / window

Hey, thanks for the report. This is a known issue: Cursor keeps a hold on the .git/index.lock file. There was a similar report recently: Git Lock File Issue in Cursor

Your case is more interesting. The repo isn’t even open in the workspace, but Cursor is still locking it. The team knows about the git lock file issue, but I’ll add your case since it seems like an expanded version of the bug.

Workaround for now:

  • Fully quit Cursor (please double-check in Activity Monitor that all processes are gone)
  • Manually delete .git/index.lock
  • Run your git operations
  • You can launch Cursor again, but if it starts locking it again, keep it closed while you work with that repo

When you can open Cursor, can you share the exact version (Help > About)? That’ll help the team. Also, were you previously running multiple workspaces at the same time with this repo?