Linux下使用一些常用的svn命令
2011-02-16 10:08
841 查看
1. 更新svn
svn up, 运行该命令后的状态有:
A Added
D Deleted
U Updated
C Conflict
G Merged
如果出现C的话,一定要自己解决冲突,否则的话提交不了;
手动解决掉冲突后,需要运行svn resolved命令,将冲突的
版本文件删除掉。
2. 第一次从svn server上下载source
svn checkout svn://ipaddress/your_repo
svn co svn://ipaddress/your_repo
svn checkout http(s)://ipaddress/your_repo
svn co http(s)://ipaddress/your_repo
3. 给svn追加新的文件
svn add yourfile
svn commit
4. 从svn删除文件
svn delete yourfile
svn commit
5. 本地文件的状态
svn status, 运行该命令后的状态有:
' ' No modifications.
'A' Item is scheduled for Addition.
'D' Item is scheduled for Deletion.
'M' Item has been modified.
'R' Item has been replaced in your working copy. This means the file was scheduled for deletion, and then a new file with the same name was scheduled for addition in its place.
'C' The contents (as opposed to the properties) of the item conflict with updates received from the repository.
'X' Item is related to an externals definition.
'I' Item is being ignored (e.g. with the svn:ignore property).
'?' Item is not under version control.
'!' Item is missing (e.g. you moved or deleted it without using svn). This also indicates that a directory is incomplete (a checkout or update was interrupted).
'~' Item is versioned as one kind of object (file, directory, link), but has been replaced by different kind of object.
参见:
http://www.linuxfromscratch.org/blfs/edguide/chapter03.html
svn up, 运行该命令后的状态有:
A Added
D Deleted
U Updated
C Conflict
G Merged
如果出现C的话,一定要自己解决冲突,否则的话提交不了;
手动解决掉冲突后,需要运行svn resolved命令,将冲突的
版本文件删除掉。
2. 第一次从svn server上下载source
svn checkout svn://ipaddress/your_repo
svn co svn://ipaddress/your_repo
svn checkout http(s)://ipaddress/your_repo
svn co http(s)://ipaddress/your_repo
3. 给svn追加新的文件
svn add yourfile
svn commit
4. 从svn删除文件
svn delete yourfile
svn commit
5. 本地文件的状态
svn status, 运行该命令后的状态有:
' ' No modifications.
'A' Item is scheduled for Addition.
'D' Item is scheduled for Deletion.
'M' Item has been modified.
'R' Item has been replaced in your working copy. This means the file was scheduled for deletion, and then a new file with the same name was scheduled for addition in its place.
'C' The contents (as opposed to the properties) of the item conflict with updates received from the repository.
'X' Item is related to an externals definition.
'I' Item is being ignored (e.g. with the svn:ignore property).
'?' Item is not under version control.
'!' Item is missing (e.g. you moved or deleted it without using svn). This also indicates that a directory is incomplete (a checkout or update was interrupted).
'~' Item is versioned as one kind of object (file, directory, link), but has been replaced by different kind of object.
参见:
http://www.linuxfromscratch.org/blfs/edguide/chapter03.html
相关文章推荐
- svn(subversion)代码版本管理在linux下的一些常见使用命令
- linux 使用hadoop中常用的一些命令
- linux 目录结构+常用命令+压缩命令+vim使用+及一些基础知识(非常好)
- linux 目录结构+常用命令+压缩命令+vim使用+及一些基础知识(非常好)
- svn(subversion)代码版本管理在linux下的一些常见使用命令
- linux 一些常用的命令 使用 基础
- linux下的vi编辑器的使用和一些常用的命令
- linux 的命令使用及一些简单常用的命令
- linux下一些常用命令以及vi的使用
- 记录一些linux下python flask mysql使用过程中常用的命令
- Linux命令行下常用svn命令的使用方法[转自:www.hackbase.com]
- linux 目录结构+常用命令+压缩命令+vim使用+及一些基础知识(非常好)
- svn(subversion)代码版本管理在linux下的一些常见使用命令
- 使用配置hadoop中常用的Linux(ubuntu)命令
- Linux下常用网络故障调试工具介绍之Tcpdump命令使用
- 关于一些Linux SVN的安装使用
- Linux:一些常用的基本命令
- linux 一些常用的命令等
- Centos版Linux 一些常用操作命令 收集
- 详解Linux命令行下常用svn命令(转载)