【发布时间】:2012-05-05 18:37:32
【问题描述】:
我不知道这是怎么发生的,但在今天之前,我可以右键单击任何文件夹,然后会有一个选项 Git Bash here。但是今天我没有那个选项。有人知道怎么找回吗?
【问题讨论】:
-
如果您的条目被损坏,您宁愿看到:
explorer.exe: Application Not Found弹出窗口。此问题中描述的解决方案也适用于此。
标签: right-click git-bash
我不知道这是怎么发生的,但在今天之前,我可以右键单击任何文件夹,然后会有一个选项 Git Bash here。但是今天我没有那个选项。有人知道怎么找回吗?
【问题讨论】:
explorer.exe: Application Not Found 弹出窗口。此问题中描述的解决方案也适用于此。
标签: right-click git-bash
如何修复不重新安装:
在将所有程序从主硬盘上移出并将它们粘贴到我的“P”驱动器后,我遇到了这个问题。但保持所有目录结构相同。
Git 已从以下位置移动:
C:\DEV\PROG\GIT
收件人:
P:\DEV\PROG\GIT
1:打开注册表编辑器: 在开始菜单搜索中输入“regedit”并回车。
2:找到“git bash here”的上下文菜单快捷方式配置 在注册表中:菜单“编辑”>“查找”>“查找内容”并输入“git_shell”
3:编辑数据值,使路径指向正确的位置。 就我而言,我改变了:
"C:\DEV\PROG\GIT\git-bash.exe" "--cd=%v."
TO:
"P:\DEV\PROG\GIT\git-bash.exe" "--cd=%v."
Screen shot included below.
【讨论】:
重新安装 Git 并选择:
Context menu entries: "Git Bash Here" (and the "Git GUI Here" option)
在安装过程中。不能说它为什么消失了,但这应该把它带回来。
【讨论】:
如果您无法使用重新安装方法的步骤。
使用 REGEDIT
1/ Open regedit (search it if needed)
2/ Go to 'HKEY_CURRENT_USER/Software/Classes/Directory/Background'
3/ Create new key 'shell'
4/ Create new key 'Git bash here' (or whatever name you want to see in the menu)
5/ Create new key 'command' (must be named command)
At this point point you'll have
'HKEY_CURRENT_USER/Software/Directory/Background/shell/Git bash here/command'
6/ Edit the value of the command key as follow 'pathToGit/git-bash.exe'
更新或打开新的 Windows 资源管理器,您会在右键单击时看到它。
【讨论】:
运行此脚本 (AddGitToExplorerContextMenu.reg)。 您可能需要更新 Git 的位置。你可以添加它 也可以通过 regedit 手动进行
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\git_shell]
@="Git Bash"
[HKEY_CLASSES_ROOT\Directory\Background\shell\git_shell\command]
@="\"C:\\Program Files\\Git\\git-bash.exe\" \"--cd=%v.\""
【讨论】:
【讨论】:
regsvr32 /u git_shell_ext64.dll 命令这个建议对我来说是解决方案(我使用了 git 1.8.3 并忘记了git-cheetah 插件)。谢谢队友。
我发现我要查找的内容位于左侧窗格中,而不是右侧文件夹中。并且仍然使用右键单击。
【讨论】:
有同样的问题,意识到以前右键单击选项会显示的文件夹内的任何位置,但现在我必须选择或突出显示文件夹,然后右键单击才能显示选项。
【讨论】: