SVN Server Environment Reference: https://www.cnblogs.com/pzk7788/p/9446424.html
Here I use a cloud server (139.xxx.xxx.89) as the SVN service side, using a VMware virtual machine (192.168.5.143) as the SVN client
If you use the SVN client:
[[email protected] ~]# Yum install-y subversion # Installing SVN~]# cd/data/ # advanced to the directory where SVN code is stored /c4>[[email protected] data]# svn checkout svn://139.xxx.xxx.89/myproject--username=user1 # Check out the code, that is, the SVN server to download the things down [[email protected] data]# ls # Check See has been downloaded myproject
How to submit your code:
[[Email protected] data]# CD myproject/ # Enter project directory 1.txt # Create a test file 1.txt # Add File to version control "add 1.txt" 1 # Commit file,-m indicates description information, after submission, other SVN client needs to perform SVN update update to see the submitted code
How to delete code:
1 . txt # First delete locally " Delete 1.txt " 1. txt # and then commit to the SVN server to really delete
How to view the change log:
[[email protected] myproject]# SVN log # View change log (from bottom to top) ------------------------------------------------------------------------R2| User1 |2018- ,-Ten -: ,: ++0800(Fri,TenThe2018) |1Linedelete1. txt------------------------------------------------------------------------R1| User1 |2018- ,-Ten -: on: to+0800(Fri,TenThe2018) |1Lineadd1. txt------------------------------------------------------------------------
Using the SVN client (Linux)