NotePublic/Software/Applications/SVN/Linux_SVN_常用命令.md

50 lines
823 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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 值,因此可正确译码。