10

使用SVN命令快速创建trunk、tags和branches目录

 3 years ago
source link: https://www.javatang.com/archives/2020/01/07/29053062.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
svn2git-1020x500-750x410.png

使用SVN命令快速创建trunk、tags和branches目录

众所周知,在SVN仓库中,branches、trunk和tags目录具有特殊的含义,当在服务器端使用 svnadmin create命令创建新的SVN仓库,在客户端使用svn命令创建trunk、tags和branches目录。

svn co http://IP_ADDRESS:PORT/svn/my_repo
cd my_repo
svn mkdir trunk tags branches
svn commit -m"Creating basic directory structure"

svn co 命令用于将项目从指定的SVN仓库中复制到本地,后面是SVN服务器的地址;
svn mkdir 命令用于创建目录,最后一条命令将当前的目录提交到SVN服务器上。

如果不想将项目整个下载到本地,也可以直接使用一条命令创建并提交目录到SVN:

svn mkdir http://IP_ADDRESS:PORT/svn/my_repo/trunk -m "making trunk dir"

另外两个目录也可以使用同样的方式进行创建并提交。

结束之后可以通过 svn ls -R http://IP_ADDRESS:PORT/svn/my_repo 命令查看是否创建成功。

参考资料:
linux svn创建版本库带branches,trunk,tags
SVN Create Directories like trunk etc
SVN creating trunk directory on existing repository

svn

发表评论 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注

评论

显示名称 *

电子邮箱地址 *

网站网址


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK