问题描述
我来自Eclipse背景,我显然错过了一些东西。
现在有一个JS代码的GitHub项目,我想开始为它添加TypeScript性质,一次只能添加一个类型。
我遵循将项目从GitHub克隆到我的本地git存储库。现在团队资源管理器窗口将其显示为本地资源库,我可以提交更改等,但它不是一个项目,我不知道如何将其作为项目打开(我想打开它作为)。
我曾经使用过的工作流程从Eclipse开始,只需新建 - >其他 - > SVN - >从SVN签出项目,然后自动执行新建项目向导。
如何克隆现有JS项目从GitHub,并使其成为一个TypeScrip项目,同时保持现有的文件夹结构?
编辑:我使用Visual Studio Express,我只限于。在这种情况下,我通常会这样做;
$ b
-
在Visual中使用Git克隆存储库工作室;或者从Git项目的网页中使用GitHub for Windows和Clone in Desktop。这将使用您指定的项目文件创建一个目录(存储库)。在Visual Studio中,File-> New->从现有代码创建一个新项目。从向导中选择C#或C ++(无论您选择哪一个都没有关系)
向导需要一个项目文件位置:给出Git的位置包含项目文件的文件夹(克隆项目存储库的位置)。 -
向导需要一个唯一的项目名称,例如,您可以将Git项目的名称与VisualStudio(或VS)一起附加到最后。
-
Git现在会同步,您将能够看到所有的git文件。进行更改将检查出来,并允许您将它们推送到项目等。
**** *默认情况下,Git将检查Visual Studio创建的新创建的.csproj文件,以允许您在Visual Studio中打开该项目。您只需要将其拖入排除的更改部分,因为相关项目很可能不会使用Visual Studio。**
I came from Eclipse background and I am apparently missing something.
There is an existing GitHub project with JS code in it and I would like to start adding TypeScript nature to it, one type at a time.
I have followed this tutorial to clone project from GitHub to my "local git repository". Now the Team Explorer window displays it as local repository and I can commit changes etc but it's not a project and I don't know how to open it as a project (I want to open it as TypeScript project).
The workflow I was used to from Eclipse would simply be New -> Other -> SVN -> Checkout Projects from SVN that is automatically followed by New Project Wizard.
How do I clone existing JS project from GitHub and make it a TypeScrip project while keeping the existing folder structure?
EDIT: I am using Visual Studio Express and I am limited to the native Git extension.
What I typically do in this situation;
Clone repository using Git in Visual Studio; or use GitHub for Windows and Clone in Desktop from the Git project's web page. This will create a directory (repository) with the project files where you specify.
In visual studio, File->New->create a new project from existing code. From the wizard, select C# or C++ (whatever your choice it does not really matter)
The wizard requires a project file location: give the location of the Git folder that contains the project files (where you cloned the project's repository).
The Wizard requires a unique project name, for example you can use the name of the Git project with VisualStudio (or VS) appended to the end.
Git will now be in sync and you will be able to see all the git files. Making changes will check them out and allow you to push them to the project etc...
***** By default Git will want to check in the newly created .csproj file that Visual Studio creates to allow you to open the project in Visual Studio. You will just want to drag this into the excluded changes section because most likely the project in question will not be using Visual Studio.**
这篇关于Visual Studio:如何从现有的GitHub存储库创建项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!