如何删除 msysgit 的右键菜单选项?
这不是最好的编程问题,但让我们面对现实吧,服务器故障人员并不精通 git,所以我认为它更适合这些观众。
我想在 shell 中切换到 TortoiseGit 或 PortableGit,但只剩下这些烦人的上下文菜单选项。
我怎样才能让他们走开?我需要编写脚本来卸载它们吗?
This isn't the best programming question but lets face it, the server fault guys aren't well versed in git, so I think its more towards this audience.
I want to switch to TortoiseGit, or PortableGit in my shell, but I'm left with these annoying context-menu options.
How do I get them to go away? Do I have to write a script to uninstall them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
64 位 Windows
从 cmd.exe 窗口运行以下命令:
32 位 Windows
从 cmd.exe 窗口运行以下命令
Windows 10
如果您使用的是 Windows 10 并且之前的方法不起作用,请尝试卸载应用程序,然后重新安装它。但在安装过程中要小心取消选中 Windows 资源管理器集成
64-Bit Windows
From a cmd.exe window, run these commands:
32-Bit Windows
From a cmd.exe window, run these commands
Windows 10
If you are on Windows 10 and the previous methods did not work try to uninstall the application and reinstall it. But be careful during the installation process unchecking Windows explorer integration
只有这个注册表删除 - 没有其他 - 在 Win8.1 上对我有效,截至最新版本:
Only this registry removal - nothing else - worked for me on Win8.1, as of recent versions:
您还可以使用 CCleaner 禁用单个条目。
You can also disable single entries using CCleaner.
当您安装 msysgit 时,有一个“Windows 资源管理器集成”选项,您可以取消选中该选项以使它们不显示。
您可以重新运行安装程序并取消选中该选项,或者卸载并重新安装并取消选中它。
When you install msysgit there is an option for "Windows Explorer Integration" that you uncheck to not have them show up.
You can rerun the setup and uncheck the option, or uninstall and reinstall and uncheck it then.
在 Windows 10 中,上述内容对我不起作用。我发现的最佳解决方案是卸载该应用程序并重新安装,并在安装过程中小心取消选中Windows资源管理器集成
In Windows 10 nothing of the above did work for me. The best solution I found is to uninstall the application and reinstall it and be careful during the installation process to uncheck Windows explorer integration
我遇到了类似的问题,以上所有答案对我都不起作用,最后我在以下步骤中找到了解决方案。
第 1 步: 在开始菜单中键入
regedit
第 2 步: 运行注册表编辑器
第 3 步: 导航到
HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell
第 4 步: 单击“shell”
第 5 步: 右键单击“Git Bash Here”,然后选择删除选项
干杯
I had a similar issue and All the above answer does not work for me, THEN Finally I found a solution in below steps.
Step 1 : Type
regedit
in start menuStep 2 : Run the registry editor
Step 3 : Navigate to
HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell
Step 4 : click on "shell"
Step 5 : Right click on "Git Bash Here" and choose the delete option
Cheers
在 Windows 10 64 位上,您需要执行以下两项操作:
1.删除注册表项
HKEY_CLASSES_ROOT\Directory\background\shell\git_gui
HKEY_CLASSES_ROOT\Directory\background\shell\git_shell
HKEY_CLASSES_ROOT\Directory\Shell\git_gui
HKEY_CLASSES_ROOT\Directory\Shell\git_shell
为了方便或如果您想自动删除(例如choco 升级后使用的示例)您可以在 Powershell 中运行(以管理员身份运行):
2.取消注册 shell 扩展 dll 以删除其他菜单项(GitExt 克隆...、GitExt 创建新存储库等):
On Windows 10 64 bits you need to do both of the following:
1. Delete registry entries
HKEY_CLASSES_ROOT\Directory\background\shell\git_gui
HKEY_CLASSES_ROOT\Directory\background\shell\git_shell
HKEY_CLASSES_ROOT\Directory\Shell\git_gui
HKEY_CLASSES_ROOT\Directory\Shell\git_shell
For convenience or if you want to automate removal (for example to use after choco upgrade) you can run in Powershell (run as Admin):
2. Unregister the shell extensions dll to remove additional menu entries (GitExt clone..., GitExt Create New Repository, etc.):
要补充一下 dfkt 所说的内容,还有一个位置包含它,即库文件夹:
HKEY_USERS 和软件之间的特定数字可能因人而异,因帐户而异,因此请确保它适合您。
因此,修改后的完整注册表删除将是:
To add to what dfkt said, there's one more location that has it, for the Library Folders:
That specific number between HKEY_USERS and Software probably varies from person to person, and account to account, so make sure it's right for you.
So, the modified, complete registry removal would be: