[英]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.