git tortoisegit 克隆选项在右键单击上下文菜单中不可用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34046508/
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
tortoisegit clone option is unavailable in right-click context menu
提问by kenober80
I have installed git 2.5.2 64-bit and TortoiseGit 1.8.16.0 64-bit onto my Windows 7 64 bit computer. I would like to clone a repository but when I right click in windows explorer, I am not seeing an option to clone a repo:
我已经在我的 Windows 7 64 位计算机上安装了 git 2.5.2 64 位和 TortoiseGit 1.8.16.0 64 位。我想克隆一个存储库,但是当我在 Windows 资源管理器中右键单击时,我没有看到克隆存储库的选项:
I have gone to TortoiseGit -> Settings -> General -> Context Menu and made sure that the Clone option is checked:
我已经转到 TortoiseGit -> 设置 -> 常规 -> 上下文菜单并确保选中了克隆选项:
I am able to clone a repo using git:
我可以使用 git 克隆一个 repo:
git clone [email protected]:Group/repo.git myrepo
I can also get TortoiseGit's clone dialog to open via command line:
我还可以通过命令行打开 TortoiseGit 的克隆对话框:
TortoiseGitProc.exe /command:clone
but I can't seem to get it to work with TortoiseGit's shell integration.
但我似乎无法让它与 TortoiseGit 的 shell 集成一起工作。
Does anyone know why the clone option is not showing up?
有谁知道为什么克隆选项没有出现?
回答by MrTux
"Hide Menus for unversioned paths" is selected, so no TortoiseGit menu is shown for paths where no git working tree could be found (you need to press shift there)
Within a working tree (in a non-ignored folder) no clone is available in the context menu. However, with newer versions (IIRC >= 2.2) also for versioned folders the Git clone entry can be shown by pressing Shiftwhile opening the context menu.
选择了“隐藏未版本化路径的菜单”,因此不会为找不到 git 工作树的路径显示 TortoiseGit 菜单(您需要在那里按 shift)
在工作树中(在非忽略文件夹中),上下文菜单中没有可用的克隆。但是,对于版本化文件夹的较新版本 (IIRC >= 2.2),可以通过Shift在打开上下文菜单时按 来显示 Git 克隆条目。
回答by kenober80
I found a solution. When I uncheck the Clone...option from the context menu setting dialog, it appears in the shift+right click context menu in the TortoiseGit folder of the context menu will show the Clone...option. (this is also true for the Create repository here...option). This was a bit confusing since the context menu setting dialog's hover tip is "Check those menu entries you want to appear in the top context menu instead of the TortoiseGit submenu". I was expecting them to show up in the top right-click context menu (above the TortoiseGit submenu) but they didn't. By checking those options they were omitted from the TortoiseGit submenu so they seemed to disappear. I can rest easy now that I can find the Clone...and Create repository here...options, but I would still be curious to know why they aren't showing up in the top context menu.
我找到了解决办法。当我从上下文菜单设置对话框中取消选中Clone...选项时,它出现在上下文菜单的 TortoiseGit 文件夹中的 shift+右键单击上下文菜单中将显示Clone...选项。(对于在此处创建存储库...选项也是如此)。这有点令人困惑,因为上下文菜单设置对话框的悬停提示是“检查您希望出现在顶部上下文菜单而不是 TortoiseGit 子菜单中的那些菜单条目”。我期待它们出现在顶部的右键单击上下文菜单中(在 TortoiseGit 子菜单上方),但它们没有。通过检查这些选项,它们从 TortoiseGit 子菜单中被省略,因此它们似乎消失了。现在我可以找到克隆人了,我可以放心了……而且在此处创建存储库...选项,但我仍然很想知道为什么它们没有显示在顶部上下文菜单中。
回答by aj go
For those reader who are still looking for solutions in this problem, I hope this link could help you too:
对于那些仍在寻找此问题解决方案的读者,我希望此链接也能对您有所帮助:
https://github.com/gitextensions/gitextensions/issues/4423#issuecomment-362666877
https://github.com/gitextensions/gitextensions/issues/4423#issuecomment-362666877