Another Git command is still running
CommonA git commit -a or git commit with paths waiting in an editor in another terminal, a long rebase or merge, an IDE or Git client working in the same repository, or a second step of a script or CI job running Git at the same time.
Confirm
ps -ef | grep '[g]it '
A git process working in this repository
Fix
- Let it finish, or close the editor or tool that started it. The lock disappears on its own.
- In scripts and CI, do not run two Git commands on the same checkout in parallel.