CMDER on Windows causing Lock files in Git, and the fix

An issue can occur when working within CMDER when Git complains that an index.lock file exists and cannot continue. This happens to be an annoying bug in Windows and CMDER. To immediately fix this issue in Windows, the task manager must be opened and all git-for-windows processes need to be ended. Then the index.lock file can be deleted manually. Or… the bug can be fixed instead!

Whenever a process within git runs, it locks the git working directory so that two git processes cannot conflict each other. It would be a mess if merging while committing, for instance. The bug then is that the Git process does not end, and the lock file subsequently stays open. Well this bug is affecting many users and it has been fixed, but not yet released. To update, download the latest build and replace your CMDER files.