Skip to content
Search

Git:Index.lock

lastmod 2021-05-15created 2015-01-303 edits

In Git, the following error message may appear during a commit.

    fatal: Unable to create '/path/my_proj/.git/index.lock': File exists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

In this case, remove index.lock as follows.

$ rm -f ./.git/index.lock

See also

Favorite site

author Zer0 sitemap