且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从命令行启动 SVN 项目?

更新时间:2023-11-09 09:54:46

实际上有两种方法可以做到这一点.一种是通过使用导入,它不会将您的活动代码库置于版本控制之下.另一种方法是在存储库中创建一个空项目,然后直接将其检出到代码库中.然后只需添加和提交:

There are actually two ways to do this. One is through the use of import which doesn't put your active code base under version control. The other method is to just create an empty project in the repository and then check it out directly into the code base. Then just do an add and an a commit:

svn mkdir <repo>/newProject
svn checkout <repo>/newProject /path/to/codebase
svn add /path/to/codebase/*
svn commit /path/to/codebase -m "adding initial codebase"

这里有一个关于如何创建新项目的很好的教程:http://web.archive.org/web/20110316170621/http://www.duchnik.com/tutorials/vc/svn-command-reference

There is a good tutorial on how to create a new project here: http://web.archive.org/web/20110316170621/http://www.duchnik.com/tutorials/vc/svn-command-reference