There is no problem not worth solving, and no technology not worth learning!

TortoiseGit detects that the file does not exist, but has been temporarily stored as “Add” or “Modify” in “Index”. The Submit dialog box cannot be handled. Do you want to recover or delete it from the index?

TortoiseGit 检测到文件 不存在,但已在“索引”中暂存为“添加”或“修改”。“提交”对话框无法处置。您要从索引中恢复或者删除它吗?从索引中恢复这个文件(E) 从索引中去掉这个文件(R) 忽略

1. TortoiseGit detects that the file does not exist, but has been temporarily stored as “Add” or “Modify” in “Index”. The Submit dialog box cannot be handled. Do you want to recover or delete it from the index? Recover this file from the index (E) Remove this file (R) from the index and ignore it. as shown in Figure 1

TortoiseGit 检测到文件 不存在,但已在“索引”中暂存为“添加”或“修改”。“提交”对话框无法处置。您要从索引中恢复或者删除它吗?从索引中恢复这个文件(E) 从索引中去掉这个文件(R) 忽略
Figure 1

2. Restore this file (E) from the index, prompt: Restoring from index failed: fatal: unable to create “e:/wwwroot/object/.git/index.lock”: File exists. As shown in Figure 2

从索引中恢复这个文件(E),提示:Restoring from index failed: fatal: Unable to create "E:/wwwroot/object/.git/index.lock": File exists
Figure 2

3. Manually delete the file: “e:/wwwroot/object/.git/index.lock”. as shown in Figure 3

手动删除文件:"E:/wwwroot/object/.git/index.lock"
Figure 3

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

从索引中恢复这个文件(E),提示:Due to changes to the index, please refresh the dialog (e.g., by pressing F5)
Figure 4

5. File: E:\wwwroot\object\xxx\modules\themestoredb\models\themeInstallationTask.php has been restored and now exists. as shown in Figure 5

文件:E:\wwwroot\object\xxx\Modules\ThemeStoreDb\Models\ThemeInstallationTask.php 已经恢复,现已存在
Figure 5

Need long-term technical maintenance or remote troubleshooting?

I am a PHP / Go backend engineer with 15+ years of experience, focused on existing system maintenance, bug fixing, performance optimization, server troubleshooting, WordPress maintenance, and small feature iterations.

If your project is facing any of the following issues, we can start with a small troubleshooting task first:

  • ✅ PHP / Laravel / Yii2 legacy systems without active maintenance
  • ✅ Go / Gin backend APIs that need troubleshooting or optimization
  • ✅ Slow, broken, or unstable WordPress websites
  • ✅ Nginx / MySQL / Redis / Linux server issues
  • ✅ CDN / Cloudflare / DNS / HTTPS configuration problems
  • ✅ Long-term remote technical support or part-time maintenance

More details: About Me & Collaboration

WeChat: 13980074657
Email: shuijingwanwq@gmail.com
Telegram: @shuijingwan
GitHub: https://github.com/shuijingwan

评论

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.