1. TortoiseGit detected that the file does not exist, but it has been staged as “add” or “modified” in the “index”. The “Commit” dialog cannot handle this. Do you want to restore it from the index or remove it? Restore this file from index (E) Remove this file from index (R) Ignore. See Figure 1.

2. Restore this file from index (E), prompt: Restoring from index failed: fatal: Unable to create “E:/wwwroot/object/.git/index.lock”: File exists. See Figure 2.

3. Manually delete the file: “E:/wwwroot/object/.git/index.lock”. See Figure 3.

4. Restore this file from index (E), prompt: Due to changes to the index, please refresh the dialog (e.g., by pressing F5). See Figure 4.

5. File: E:\wwwroot\object\xxx\Modules\ThemeStoreDb\Models\ThemeInstallationTask.php has been restored and now exists. See Figure 5.

