以为用上了Git就不会再和Svn打交道,不存在的。
Svn,Subversion,Centralized Version Control System(CVCS)。
svn的官方文档,458页,估计这辈子都看不完了。
所以还是这篇博客比较有用,10个最常用的svn命令。
Table of Contents
1. SVN Checkout, Create working copy
svn checkout/co URL PATH
#例子
svn co https://www.thegeekstuff.com/project/branches/release/migration/data/cfg /home/sasikala/cfg/
2. SVN Commit, Save changes to the repository
svn commit -m "log messages" svn-commands
#例子
svn commit -m "Making the file empty"
3. SVN List, Lists directory entries
svn list
#例子
svn list --verbose https://www.thegeekstuff.com/project/branches/release/migration/data/bin
4. SVN Add, Add a new file to SVN repository
svn add thegeekstuff
svn commit -m "Adding a file thegeekstuff" thegeekstuff
5. SVN Delete, Removing a file from repository
svn delete URL
#例子
svn delete thegeekstuff
svn commit -m "Removing thegeekstuff file" thegeekstuff
6. SVN Diff, Display the difference
svn diff filename
svn -r R1:R2 diff filename
#例子
svn diff thegeekstuff
7. SVN Status, Status of the working copy
svn status PATH
#例子
svn status /home/sasikala/cfg
8. SVN Log, Display log message
svn log PATH
#例子
svn log thegeekstuff
9. SVN Move, Rename file or directory
svn move src dest
#例子
svn move thegeekstuff tgs
10. SVN Update, Update the working copy
svn update PATH
#例子
svn update
近期评论