- 简介:SVN,版本管理,和git用起来类似
- 安装tortoiseSVN,记得勾选安装命令行工具(命令行比GUI用得舒服hhh另外如果下面要集成到vscode中用svn插件,也需要装这个): https://tortoisesvn.net/
- 常用svn命令:https://svnbucket.com/posts/svn-commands-tutorial/
列出命令说明
svn help
svn help status # 列出svn status命令的帮助信息
- vscode集成svn使用:
- 安装:安装插件SVN
- 使用:
- 命令面板(ctrl+shift+P)中SVN: XXX
- 打开svn项目,可以方便查看文件修改(点击左侧sidebar的分支项,可以选择文件查看对比)
svn status
The first seven columns in the output are each one character wide:
First column: Says if item was added, deleted, or otherwise changed
‘ ‘ no modifications
‘A’ Added
‘C’ Conflicted
‘D’ Deleted
‘I’ Ignored
‘M’ Modified
‘R’ Replaced
‘X’ an unversioned directory created by an externals definition
‘?’ item is not under version control
‘!’ item is missing (removed by non-svn command) or incomplete
‘~’ versioned item obstructed by some item of a different kind
Second column: Modifications of a file’s or directory’s properties
‘ ‘ no modifications
‘C’ Conflicted
‘M’ Modified
Third column: Whether the working copy is locked for writing by
another Subversion client modifying the working copy
‘ ‘ not locked for writing
‘L’ locked for writing
Fourth column: Scheduled commit will create a copy (addition-with-history)
‘ ‘ no history scheduled with commit (item was newly added)
‘+’ history scheduled with commit (item was copied)
Fifth column: Whether the item is switched or a file external
‘ ‘ normal
‘S’ the item has a Switched URL relative to the parent
‘X’ a versioned file created by an eXternals definition
Sixth column: Whether the item is locked in repository for exclusive commit
(without -u)
‘ ‘ not locked by this working copy
‘K’ locked by this working copy, but lock might be stolen or broken
(with -u)
‘ ‘ not locked in repository, not locked by this working copy
‘K’ locked in repository, lock owned by this working copy
‘O’ locked in repository, lock owned by another working copy
‘T’ locked in repository, lock owned by this working copy was stolen
‘B’ not locked in repository, lock owned by this working copy is broken
Seventh column: Whether the item is the victim of a tree conflict
‘ ‘ normal
‘C’ tree-Conflicted
If the item is a tree conflict victim, an additional line is printed
after the item’s status line, explaining the nature of the conflict.
The out-of-date information appears in the ninth column (with -u):
‘*’ a newer revision exists on the server
‘ ‘ the working copy is up to date