如何删除 msysgit 的右键菜单选项?

发布于 2024-08-25 09:25:19 字数 159 浏览 5 评论 0原文

这不是最好的编程问题,但让我们面对现实吧,服务器故障人员并不精通 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

栀子花开つ 2024-09-01 09:25:19

64 位 Windows

从 cmd.exe 窗口运行以下命令:

cd "C:\Program Files (x86)\Git\git-cheetah"
regsvr32 /u git_shell_ext64.dll

32 位 Windows

从 cmd.exe 窗口运行以下命令

cd "C:\Program Files\Git\git-cheetah"
regsvr32 /u git_shell_ext.dll

Windows 10

如果您使用的是 Windows 10 并且之前的方法不起作用,请尝试卸载应用程序,然后重新安装它。但在安装过程中要小心取消选中 Windows 资源管理器集成

在此处输入图像描述

64-Bit Windows

From a cmd.exe window, run these commands:

cd "C:\Program Files (x86)\Git\git-cheetah"
regsvr32 /u git_shell_ext64.dll

32-Bit Windows

From a cmd.exe window, run these commands

cd "C:\Program Files\Git\git-cheetah"
regsvr32 /u git_shell_ext.dll

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

enter image description here

顾挽 2024-09-01 09:25:19

只有这个注册表删除 - 没有其他 - 在 Win8.1 上对我有效,截至最新版本:

Windows Registry Editor Version 5.00

[-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]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_gui]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_gui]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_shell]

Only this registry removal - nothing else - worked for me on Win8.1, as of recent versions:

Windows Registry Editor Version 5.00

[-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]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_gui]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_gui]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_shell]
长伴 2024-09-01 09:25:19

您还可以使用 CCleaner 禁用单个条目。

在此处输入图像描述

You can also disable single entries using CCleaner.

enter image description here

十二 2024-09-01 09:25:19

当您安装 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.

梦醒灬来后我 2024-09-01 09:25:19

在 Windows 10 中,上述内容对我不起作用。我发现的最佳解决方案是卸载该应用程序并重新安装,并在安装过程中小心取消选中Windows资源管理器集成

删除 git 删除点击菜单选项

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

remove git remove click menu options

影子是时光的心 2024-09-01 09:25:19

我遇到了类似的问题,以上所有答案对我都不起作用,最后我在以下步骤中找到了解决方案。

第 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 menu

Step 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

妄司 2024-09-01 09:25:19

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 中运行(以管理员身份运行):

New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null
Remove-Item -Path "HKCR:\Directory\shell\git_gui" -Recurse
Remove-Item -Path "HKCR:\Directory\shell\git_shell" -Recurse
Remove-Item -Path "HKCR:\Directory\Background\shell\git_gui" -Recurse
Remove-Item -Path "HKCR:\Directory\Background\shell\git_shell" -Recurse

2.取消注册 shell 扩展 dll 以删除其他菜单项(GitExt 克隆...、GitExt 创建新存储库等):

regsvr32 /u "C:\Program Files (x86)\GitExtensions\GitExtensionsShellEx64.dll"

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):

New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null
Remove-Item -Path "HKCR:\Directory\shell\git_gui" -Recurse
Remove-Item -Path "HKCR:\Directory\shell\git_shell" -Recurse
Remove-Item -Path "HKCR:\Directory\Background\shell\git_gui" -Recurse
Remove-Item -Path "HKCR:\Directory\Background\shell\git_shell" -Recurse

2. Unregister the shell extensions dll to remove additional menu entries (GitExt clone..., GitExt Create New Repository, etc.):

regsvr32 /u "C:\Program Files (x86)\GitExtensions\GitExtensionsShellEx64.dll"
桃气十足 2024-09-01 09:25:19

要补充一下 dfkt 所说的内容,还有一个位置包含它,即库文件夹:

HKEY_USERS\S-1-5-21-2901758233-4091616725-3820123586-1012\Software\Classes\LibraryFolder\background\shell\git_gui
HKEY_USERS\S-1-5-21-2901758233-4091616725-3820123586-1012\Software\Classes\LibraryFolder\background\shell\git_shell

HKEY_USERS 和软件之间的特定数字可能因人而异,因帐户而异,因此请确保它适合您。

因此,修改后的完整注册表删除将是:

Windows Registry Editor Version 5.00

[-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]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_gui]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_gui]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_shell]

[-HKEY_USERS\S-1-5-21-2901758233-4091616725-3820123586-1012\Software\Classes\LibraryFolder\background\shell\git_gui]

[-HKEY_USERS\S-1-5-21-2901758233-4091616725-3820123586-1012\Software\Classes\LibraryFolder\background\shell\git_shell]

To add to what dfkt said, there's one more location that has it, for the Library Folders:

HKEY_USERS\S-1-5-21-2901758233-4091616725-3820123586-1012\Software\Classes\LibraryFolder\background\shell\git_gui
HKEY_USERS\S-1-5-21-2901758233-4091616725-3820123586-1012\Software\Classes\LibraryFolder\background\shell\git_shell

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:

Windows Registry Editor Version 5.00

[-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]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_gui]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\git_shell]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_gui]

[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\git_shell]

[-HKEY_USERS\S-1-5-21-2901758233-4091616725-3820123586-1012\Software\Classes\LibraryFolder\background\shell\git_gui]

[-HKEY_USERS\S-1-5-21-2901758233-4091616725-3820123586-1012\Software\Classes\LibraryFolder\background\shell\git_shell]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文