简体   繁体   中英

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. 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). 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. Is there any way to get my code onto 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 .

There is also an official book on how to use git and how it works, available online for free, here .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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