50 lines
809 B
Markdown
50 lines
809 B
Markdown
# Linux SVN 常用命令
|
||
|
||
## Checkout
|
||
|
||
```sh
|
||
svn checkout <remote url>
|
||
```
|
||
|
||
## Add & Delete File
|
||
|
||
```sh
|
||
svn add <file or path>
|
||
svn delete <file or path>
|
||
```
|
||
|
||
## Commit
|
||
|
||
```sh
|
||
svn commit -m <annotation>
|
||
```
|
||
|
||
## Update
|
||
|
||
```sh
|
||
svn update
|
||
```
|
||
|
||
## Lock & Unlock
|
||
|
||
```sh
|
||
svn lock <file or path>
|
||
svn unlock <file or path>
|
||
```
|
||
|
||
## Information
|
||
|
||
```sh
|
||
svn info
|
||
```
|
||
|
||
## Diff
|
||
|
||
```sh
|
||
svn diff <file or path>
|
||
```
|
||
|
||
## 解决中文路径问题
|
||
|
||
如果服务器包含中文路径,则因中文编码问题导致 Linux 下无法正确访问,解决方法是想办法获取中文路径的正确 Hex 值,比如在 Windows 下 checkout 谋 svn 路径,然后再在 Linux 下使用,Linux 将使用该目录下的默认 URL,这个 URL 是在 Windows 下编码的,Linux 直接使用其 Hex 值,因此可正确译码。
|