1.svn help.
description: svn help subcommand will describe the syntax, options, and behavior of the command
$svn help import
import: commit an unversioned file or tree into the repository.
usage: import [PATH] URL
....
2. svn import
description: the svn import command is a quick way to copy an unversioned tree of files into a repository, creating intermediate directories as necessary.
$ svnadmin create /var/svn/newrepos
$ svn import mytree file:///var/svn/newrepos/some project -m "Initial import"
3. svn list
$ svn list file:///var/svn/repos
/trunk
/branches
/tags
4. svn checkout
description: most of the time, you will start using a Subversion repository by doing a checkout of your project, checking out a repository creates a "working copy" of it on your local machine.
$ svn checkout http://svn.collab.net/repos/svn/trunk
$ svn checkout -r 1729
5. svn update
description: using svn update to bring your working copy into sync with the latest revision in the repository
$ svn update
$ svn update -r 1729
6. svn add foo
7. svn delete foo
8. svn copy foo bar
9. svn move foo bar
10. svn mkdir blort
11. svn status
description: if you run status at the top of your working copy with no arguments, it will detect all file and tree changes you've made. if you pass a specific path to svn status, you get information about that item alone, svn status also has a --verbose(-v) option, which will show you the status of every item in your working copy, even if it has not been changed. there is the --show-update(-u)option, which contacts the repository and adds information about things that are out of date:
$ svn status stuff/fish.c
$ svn status -v
$ svn status -u -v
12. svn diff
description: another way to examine your changes is with the svn diff command, you can find out exactly how you've modified things by running svn diff with no arguments, which prints out file changes in unified diff format:
$ svn diff
$ svn diff > patchfile
13. svn revert README
description: suppose while viewing the output of svn diff you determine that all the changes you made to a particular file are mistakes. Maybe you shouldn't have changed the file at all, or perhaps it would be easier to make different changes starting from scratch.
$ svn revert README
14. svn commit -m "MESSAGE"
description: the svn commit command sends all of your changes to the repository.
15. svn resolve
description: now use svn resolve, and you're ready to commit your changes
$ svn resolve --accept working sandwich.txt
$ svn commit -m "MESSAGE"
$ svn commit -F logmsg
16. svn log
17. svn diff
18. svn cat
19. svn list
20. svn cleanup
21. creating a branch
$ svn copy http://svn.example.com/repos/calc/trunk http://svn.example.com/repos/calc/branches/my-calc-branch -m "Creating a private branch of /calc/trunk"
22. working with your branch
$ svn checkout http://svn.example.com/repos/calc/branches/my-calc-branch
23. merge your branches into trunk
$ pwd
/home/user/my-calc-branch
$ svn merge ^/trunk
--- Merging r345 through r356 into '.':
(that we're using the caret(^) syntax to avoid having to type out the entire /trunk URL.
24. mergeinfo and previews
$ cd my-calc-branch
$ svn propget svn:mergeinfo .
/trunk:341-390
$ svn mergeinfo ^/trunk
r341
r342
...
r388
r389
$ svn merge ^/trunk --dry-run
分享到:
相关推荐
Subversion Subversion Subversion Subversion Subversion
Subversion 是一个开源的版本控制系统,它用于管理文件和目录的变更历史,使得多人协作开发成为可能。在给定的压缩包文件中,包含了 `subversion-1.7.2.tar.gz` 和 `subversion-deps-1.6.1.tar.gz` 两个文件,它们是...
Jenkins Subversion 插件使得Jenkins能够与Subversion仓库进行交互,进行代码的检出、更新和提交等操作。在设置Jenkins与Subversion的集成时,正确安装和配置相关插件至关重要。 首先,我们需要了解Jenkins ...
### Subversion Edge 详细安装与使用手册 #### 一、Subversion Edge 下载与安装 ##### 1.1 下载地址 Subversion Edge 的下载地址为:[http://www.collab.net/svnedge](http://www.collab.net/svnedge)。 ##### ...
**SubVersion 应用详解** SubVersion(简称SVN)是一种广泛使用的版本控制系统,它能够跟踪文件和目录的变更,使多个用户协同工作在同一个项目上成为可能。本讲解将深入探讨SubVersion的基础概念、安装配置、基本...
Subversion 1.2x 插件是针对Eclipse集成开发环境的一个版本控制系统插件,主要用于支持Subversion(SVN)版本控制系统的操作。Subversion是一个开源的版本控制系统,允许用户跟踪文件和目录的更改历史,便于团队协作...
Subversion,快速入门教程,本文是使用Subversion最快速的教程,在最短的时间里帮助您建立起一套可用的服务器环境,只需略加调整就可以应用到实际项目当中。
Apache Subversion(简称SVN)是一个开源的版本控制系统,用于管理软件项目的源代码和其他文件的变更。这个"Apache-Subversion-1.14.0.zip"压缩包包含的是Subversion 1.14.0版本的命令行工具,适用于Windows操作系统...
Subversion(简称SVN)是一款开源的版本控制系统,它用于管理对文件和目录的更改,以便在多人协作的环境中保持数据的一致性和完整性。Subversion 1.5.1是Subversion项目的一个重要版本更新,它带来了许多改进和新...
《使用Subversion进行版本控制 PDF中文版》这一资源,深入介绍了Subversion(SVN)这一流行版本控制系统的基本概念、操作流程以及高级功能,对于想要深入了解或学习版本控制系统的开发者来说,无疑是一份宝贵的学习...
Subversion是一个自由开源的版本控制系统。在Subversion管理下,文件和目录可以超越时空。Subversion将文件存放在中心版本库里,这个版本库很像一个普通的文件服务器,不同的是,它可以记录每一次文件和目录的修改...
Subversion(SVN)是一个流行的开源版本控制系统,用于管理和跟踪文件和目录的变更。这个"subversion-1.7.9.zip"文件是Subversion 1.7.9版本的压缩包,它包含了该版本的所有源代码、文档、构建脚本和其他必要的组件...
### 版本控制与Subversion 1.3 #### 一、版本控制概念与Subversion简介 **版本控制**是一种管理计算机程序、文档以及其他类型文件变更历史的技术。它允许开发人员跟踪不同版本之间的差异,回滚到早期版本,并且在...
Subversion(SVN)是一个开源的版本控制系统,用于管理对软件项目源代码的更改。它在软件开发领域中广泛使用,特别是在多人协作的环境中,帮助团队成员协同工作,跟踪文件的修改历史,以及解决合并冲突等问题。...
Subversion(简称svn)是一个广泛使用的版本控制系统,用于管理和跟踪文件和目录的变更。这个"subversion-1.6.1.tar.gz"文件是Subversion 1.6.1版本的服务器端源码包,特别设计用于Linux操作系统。源码包意味着你...