用四组命令学会最基本的svn操作

玩之前先明确一点:服务端叫repository, 客户端叫working copy

##创建repository
1. svnadmin create /home/kent/svntutorial 

##创建working copy
2. mkdir /home/kent/svnclient
   cd /home/kent/svnclient
   svn checkout file:///home/kent/svntutorial/
   

##进入创建一个叫作trunk的目录
3. cd svntutorial
   mkdir trunk
  
##创建一个文件并添加到svn repository
4. cd trunk
   vi 1st.txt        ##创建一个本地文件
   svn add 1st.txt   ##加到svn
   svn status        ##查看所有等待提交的文件
   svn commit        ##提交文件

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.