svn 命令详解

| 选择喜欢的代码风格  

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

svn 命令安装:


-bash/zsh: svn: command not found

# Windows (WSL2)
sudo apt-get update sudo apt-get install subversion

# Debian
apt-get install subversion

# Ubuntu
apt-get install subversion

# Alpine
apk add subversion

# Arch Linux
pacman -S subversion

# Kali Linux
apt-get install subversion

# CentOS
yum install subversion

# Fedora
dnf install subversion

# OS X
brew install subversion

# Raspbian
apt-get install subversion

# Dockerfile
dockerfile.run/svn

# Docker
docker run cmd.cat/svn svn

svn 命令补充说明:


Subversion 是一个版本控制系统,它允许您保留文件的旧版本(通常是源代码),记录谁、何时和为什么发生变化等,例如 CVS、RCS 或 SCCS。 Subversion 保留主源的单个副本。 该副本称为源存储库,它包含允许随时提取以前的软件版本的所有信息。

csh 命令语法:


svn command [options] [args]

svn 命令选项:


These options are understood by svn commands.  Not all options are available to every command.  
See the individual command descriptions for details.

-?, -h, -H, --help
Show help text.

-v, --verbose
Print additional information.

-r, --revision REV
Specify repository revision to operate on. Separate multiple revisons with `:'.

--version
Print client version info.

-N, --non-recursive
Local; run only in current working directory.

--dry-run
Try operation but make no changes.

-R, --recursive
Operate recursively (default).

--force
Force operation to run.

-m, --message MSG
Specify log message.

-F, --file ARG
Read data from file ARG.

--encoding ARG
Take log message in charset encoding ARG.

--show-updates
Display update information.

--username ARG
Specify a username ARG.

--password ARG
Specify a password ARG.

-x, --extensions ARG
Pass ARG as bundled options to GNU diff.

--targets
Supply  a  file used as entry and URL args for a given command. You can also supply '-' as the file to read from standard input. The
file will be read as one argument for each line, even if given on standard input.

-q or --quiet
Print as little as possible.

--xml  Output in xml.

--strict
Use strict semantics.

--no-ignore
Disregard default and svn:ignore property ignores.

--no-auth-cache
Do not cache authentication tokens.

svn 命令实例:


svn 从存储库中查看工作副本:

svn co url/to/repository

svn 更改从存储库引入工作副本:

svn up

svn 将文件和目录置于版本控制之下,安排它们添加到存储库中。 它们将在下一次提交中添加:

svn add PATH

svn 将更改从工作副本发送到存储库:

svn ci -m commit_log_message [PATH]

svn 显示最近 10 个修订版的更改,显示每个修订版的修改文件:

svn log -vl 10

显示 svn 详细帮助:

svn help


svn 命令评论