在Visual Studio中添加Git - 添加现有项目? [英] Git in Visual Studio - add existing project?
问题描述
我已经设置了一个'Team Foundation Service'Git(Git源代码管理),但是我不清楚几件事情。在线帐户。
我目前有一个asp.net MVC 4解决方案 - 在我的Projects文件夹中。我在本地创建了一个git'repository'(当前是一个空文件夹)。这应该只是我目前在Projects中的应用程序文件夹?或者是否需要复制?
如何将现有文件存入在线存储库?
我到处寻找类似的问题 - 我已经设法初始化一个现有项目文件的Git仓库的方式是这样的:
(disclaimer:this是在Visual Studio 2013 Express中完成的,没有团队基础服务器设置)
$ b
- 在Visual Studio中打开项目
- 转到文件 - >添加到源代码管理
这对我来说 - 假设Git为您设置,可以前往View-> Team Explorer,然后双击项目文件的存储库,进行初始提交(确保添加任何你喜欢的文件)。
I'm trying to put an existing project under Git source control but I'm unclear on several things.
I have setup a 'Team Foundation Service' Git account online.
I currently have an asp.net MVC 4 solution - in my Projects folder. I have created a git 'repository' locally (an empty folder currently). Should this just be my current application folder in Projects? Or does it need to be a copy?
How do I get my existing files into the online repository?
I went searching around for a similar question - the way I've managed to initialize a Git repo for an existing project file is this:
(disclaimer: this is done in Visual Studio 2013 Express, without a team foundation server setup)
- Open the project in Visual Studio
- Go to File->Add to Source Control
That did it for me - assuming Git is setup for you, you can go to View->Team Explorer, then double click the repository for your project file, make your initial commit (making sure to add whatever files you'd like).
这篇关于在Visual Studio中添加Git - 添加现有项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!