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