简体   繁体   English

将IIS中的现有网站添加到Visual Studio 2017中的Git

[英]Adding existing Web Site in IIS to Git in Visual Studio 2017

I am trying to add a repository containing the html pages, javascript scripts, images, and c# code files for my website hosted on IIS. 我正在尝试为IIS上的网站添加一个包含html页,javascript脚本,图像和c#代码文件的存储库。 I have a solution in visual studio 2017 that has the website added as a project, but as Web Site's go, the actual files for the website are in a different folder than the project (inetpub vs the defualt project file location). 我在Visual Studio 2017中有一个解决方案,该解决方案将网站添加为项目,但是随着网站的发展,网站的实际文件位于与项目不同的文件夹中(inetpub与defualt项目文件位置)。 When I tried to add the project to git from visual studio it says the portions of the website outside of the project folder will not be added or maintained by git. 当我尝试从Visual Studio将项目添加到git时,它说git不会添加或维护项目文件夹之外的网站部分。 Is there any way to get my code onto git? 有什么办法可以将我的代码导入git吗?

If this is your first time using git, I recommend checking out a few of the courses available online, such as Github's Hello world or their Try It tool , or a tutorial offered by someone else, like this one . 如果这是您第一次使用git,我建议您查看一些在线可用的课程,例如Github的Hello world他们的Try It工具 ,或其他人提供的教程(例如this)

There is also an official book on how to use git and how it works, available online for free, here . 还有关于如何使用Git和它是如何工作的,可以在网上免费,正式的书在这里

Keep in mind that while these links are mostly around github, you can use the tools here with any git host, like GitLab, BitBucket, or even your own self hosted solution 请记住,尽管这些链接主要围绕github,但是您可以将此处的工具与任何git主机一起使用,例如GitLab,BitBucket甚至您自己的自托管解决方案

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

相关问题 在Visual Studio 2017的``网站''中设置C#7 - Setting C# 7 in 'web site' in Visual Studio 2017 未找到 Visual Studio 2019 本地 IIS Web 站点 - Visual Studio 2019 not found local IIS Web Site 网站适用于 Visual Studio 2017 但不适用于 IIS 10 - Website works on visual studio 2017 but not IIS 10 尝试使用Visual Studio 2017将现有网站列添加到自定义列表| (Sharepoint)[Microsoft.Sharepoint.Client] - Trying to add existing site column to the custom list using Visual Studio 2017 | (Sharepoint) [Microsoft.Sharepoint.Client] Web Api Core 在 Visual Studio 2017 中的 IIS Express 上启动时挂起? - Web Api Core hangs when start it on IIS Express in Visual Studio 2017? Visual Studio 2017中的MVC Web应用程序开发 - MVC web application Development in Visual Studio 2017 Web essentials 2017未在visual studio 2017工具栏中显示 - Web essentials 2017 not shown in visual studio 2017 toolbars 应用程序配置为使用 IIS (Visual Studio 2017/2019) - The Application is configured to use IIS (Visual Studio 2017/2019) 启动IIS Express时发生错误-Visual Studio 2017 - An Error Occured Launching IIS Express - Visual Studio 2017 无法在Visual Studio 2017 RC中启动IIS Express - Unable to launch IIS Express in Visual Studio 2017 RC
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM