简体   繁体   English

Visual Studio中的git clone(使用Git源代码控制提供程序)

[英]git clone from Visual studio (using the Git Source Control Provider)

I am using Git Source Control Provider version 1.1 with Visual Studio 2012. 我在Visual Studio 2012中使用Git Source Control Provider 1.1版。

Is it possible to perform a clone operation from within the Visual Studio interface? 是否可以从Visual Studio界面中执行克隆操作?

ie Is there an equivalent of the 'git clone' command while using the Git Source Control Provider for Visual Studio? ie在使用Visual Studio的Git源代码控制提供程序时,是否有等效的'git clone'命令?

Thanks. 谢谢。

-Anand -Anand

According to this discussion , it seems like the Git Source Control Provider does not support cloning through the GUI yet. 根据这个讨论 ,似乎Git源代码控制提供程序还不支持通过GUI进行克隆。 Try cloning from the git bash command line with git clone REPO_URL . 尝试使用git clone REPO_URL从git bash命令行git clone REPO_URL

We were unable to clone because the 'Git' menu was not showing up in Visual Studio 2012. The Git menu was made available in the VS interface by following the steps below: 我们无法克隆,因为“Git”菜单没有出现在Visual Studio 2012中。通过以下步骤,可以在VS界面中使用Git菜单:

Tools-->Options-->Environment-->Add-in Security and then add the path to the VS Addins (in our case: C:\\Users\\\\Documents\\Visual Studio 2012\\Addins) and then restart VS 2012 工具 - >选项 - >环境 - >加载项安全性然后添加VS Addins的路径(在我们的例子中:C:\\ Users \\\\ Documents \\ Visual Studio 2012 \\ Addins)然后重新启动VS 2012

Note: The files GitPlugin.AddIn and GitPlugin.dll should be available in the Addins folder of VS. 注意:文件GitPlugin.AddIn和GitPlugin.dll应该在VS的Addins文件夹中可用。

Once VS 2012 is restarted, the Git menu will be available. 重新启动VS 2012后,Git菜单将可用。 The Git menu provides an option to clone the repository. Git菜单提供了克隆存储库的选项。

Hope this helps :) 希望这可以帮助 :)

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM