{"version":"2.1.328","anchor":"stale-git-lock-cleanup-can-scan-the-whole-git-tree","canonical_anchor":"stale-git-lock-cleanup-can-scan-the-whole-git-tree","heading":"Leftover git lock files can be cleaned up anywhere inside .git","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/stale-git-lock-cleanup-can-scan-the-whole-git-tree","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Leftover git lock files can be cleaned up anywhere inside .git\n\nClaude Code's cleanup of stale git lock files can now search every folder under .git, not only a few fixed places\n\n**What**\n\nGit leaves small lock files behind to mark that it is busy. If git stops unexpectedly, a stale lock can block later git commands until it is removed. Claude Code already had a cleanup that removes stale locks.\n\nThat cleanup used to look only in the top of the `.git` folder and in its `refs`, `logs`, `worktrees` and `reftable` folders. It now has a deeper mode that searches every folder under `.git`.\n\n**Why**\n\nMore kinds of leftover lock files can be found and removed, so a checkout, notably one in a cloud environment, gets unstuck in more cases.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}