使用 AnkhSVN/Tortoise 将现有 ASP.NET 网站添加到 Subversion
如何将现有的 ASP.NET 网站添加到 Subversion 来处理 Subversion 不支持存储库中的多个文件夹结构的问题:
默认的 ASP.NET 网站解决方案文件夹结构如下所示: C:\Documents and Settings\用户名\我的文档\Visual Studio 2008\Projects\WebSite1\
WebSite1.sln
WebSite1.suo
C:\Documents and Settings\用户名\我的文档\Visual Studio 2008\WebSites\WebSite1\
App_Data
Default.aspx
web.config
如何将网站导入到存储库? 如何从存储库获取网站的工作副本? 我如何分支网站? 如何将网站分支合并到主干?
How do you add a existing ASP.NET website to Subversion dealing with the problems that Subversion dosent support multiple folder structures in the repository:
An default ASP.NET Website Solution folder structure look like this:
C:\Documents and Settings\UserName\My Documents\Visual Studio 2008\Projects\WebSite1\
WebSite1.sln
WebSite1.suo
C:\Documents and Settings\UserName\My Documents\Visual Studio 2008\WebSites\WebSite1\
App_Data
Default.aspx
web.config
How do i import the website to the repository?
How do i get working copys of the website from the repository?
How do i branch the website?
How do i merge the websitebranch into the trunk?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将文件放在文件系统中的任何位置,而不必接受 Visual Studio 默认设置。 Subversion 也可以很好地处理该文件结构,它并不关心它们在哪里,只要您可以在存储库中定义一个公共根来存储文件即可。您甚至不必像这样在本地存储它们,您可以将存储库的不同部分检出到文件系统的完全不同区域。
You can put your files whereever you like in your file system you do not have to accept visual studio defaults. Also subversion would cope just fine with that file structure, it does not care where they are so long as you can define a common root in the repo to store the files. You don't even have to store them like that locally, you can check out different bits of a repo to completely differnt areas of the file system.