Chinaunix首页 | 论坛 | 博客
  • 博客访问: 606014
  • 博文数量: 263
  • 博客积分: 6000
  • 博客等级: 准将
  • 技术积分: 2555
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-26 11:20
文章分类

全部博文(263)

文章存档

2011年(10)

2010年(19)

2009年(170)

2008年(64)

我的朋友

分类: 项目管理

2009-04-28 11:19:43

名称

svn import — 递归提交一个路径的拷贝到版本库。

概要

svn import [PATH] URL

描述

Recursively commit a copy of PATH to URL. If PATH is omitted, “.” is assumed. Parent directories are created in the repository as necessary. Unversionable items such as device files and pipes are ignored even if --force is specified.

别名

改变

版本库

是否访问版本库

选项

--message (-m) TEXT
--file (-F) FILE
--quiet (-q)
--depth ARG
--force
--with-revprop ARG
--username USER
--password PASS
--no-auth-cache
--non-interactive
--force-log
--editor-cmd EDITOR
--encoding ENC
--config-dir DIR
--auto-props
--no-auto-props
--ignore-externals

例子

这将本地目录myproj导入到版本库的trunk/misctrunk/misc在导入之前不需要存在—svn import会递归的为你创建目录。

$ svn import -m "New import" myproj 
Adding myproj/sample.txt

Transmitting file data .........
Committed revision 16.

需要知道这样会在版本库创建目录myproj,如果你希望这样,请在URL后添加myproj

$ svn import -m "New import" myproj /myproj
Adding myproj/sample.txt

Transmitting file data .........
Committed revision 16.

在导入数据之后,你会发现原先的目录树并没有纳入版本控制,为了开始工作,你还是要运行svn checkout得到一个干净的目录树工作拷贝。

阅读(1946) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~