Monday, March 3, 2014

GIT : Unable to create '.git/index.lock': File exists.

This happens when the git crashes in the middle of committing or pushing the changes.

The quick around is :

  1. Open Command Prompt (Open Terminal for the Linux)
  2. Navigate to the project root folder
  3. Type the following command
    rm -f ./.git/index.lock

Share this

0 Comment to "GIT : Unable to create '.git/index.lock': File exists."

Post a Comment