git 如何优雅地停止和启动 TGitCache.exe

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16773257/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 16:15:01  来源:igfitidea点击:

How can I stop and start TGitCache.exe gracefully

gittortoisegit

提问by Notinlist

I want to remove my local repository entirely, but TGitCache.exe keeps an open handle to the directory. I would like to shut down it gracefully, delete the folder and start it again.

我想完全删除我的本地存储库,但 TGitCache.exe 保持目录的打开句柄。我想优雅地关闭它,删除文件夹并重新启动它。

回答by Notinlist

  1. Open TortoiseGit Settings> Icon Overlays
  2. In section "Status cache" select "None"
  3. Click OK
  1. 打开TortoiseGit 设置>图标叠加
  2. 在“状态缓存”部分选择“无”
  3. 单击确定

TGitCache.exewill disappear from the process list.

TGitCache.exe将从进程列表中消失。

icon overlays

图标叠加

If you need it again, you can turn it on by selecting another option, like "Default". After a click in an explorer window TGitCache.exewill run again.

如果您再次需要它,您可以通过选择另一个选项(例如“默认”)将其打开。单击资源管理器窗口TGitCache.exe后将再次运行。

回答by MrTux

You can enable a systray icon for TGitCache.

您可以为 TGitCache 启用系统托盘图标。

Open TortoiseGit settings and open Advanced page. There set CacheTryIconto trueand restart TGitCache.

打开 TortoiseGit 设置并打开高级页面。有设置CacheTryIcontrue并重新启动TGitCache。

Now you have a new TortoiseGit icon in the systray where you can select "Exit" to close TGitCache (it will restart automatically again). You can also select "Disable Status cache" which will set Status cache to None(see https://stackoverflow.com/a/16921151/3906760).

现在您在系统托盘中有一个新的 TortoiseGit 图标,您可以在其中选择“退出”以关闭 TGitCache(它将再次自动重新启动)。您还可以选择“禁用状态缓存”,这会将状态缓存设置为None(参见https://stackoverflow.com/a/16921151/3906760)。

回答by andyg0808

Have you seen this?

你见过这个吗?

https://tortoisegit.org/issue/401

https://tortoisegit.org/issue/401

It's a bug report on TortoiseGit that seems to be describing your exact problem.

这是 TortoiseGit 上的错误报告,似乎描述了您的确切问题。

Basically, it seems that TGitCache.exe shouldn't be doing that, and in the newest versions of TortoiseGit it doesn't. Perhaps you might try upgrading your TortoiseGit?

基本上,似乎 TGitCache.exe 不应该这样做,而在最新版本的 TortoiseGit 中则不应该这样做。也许您可以尝试升级您的 TortoiseGit?