Recently, in order to facilitate the management of the program, in the server installation Svnserver, scheduled to update the version regularly!
Windows Server 2008 used by the server environment the Linux for my client uses commands to operate on the command environment
First, the use of instructions
A, server-side use (if the server is Linux, the following Windows DOS instructions are replaced with the corresponding shell command)
1. Create Warehouse
The code is as follows |
Copy Code |
Svnadmin Create test/
|
2. Initialize Warehouse
The code is as follows |
Copy Code |
MD Source
|
Build a file under this directory
The code is as follows |
Copy Code |
SVN import source/file:///f:/lycsvn/repos1/-M "Init source"
|
3. Test new position is normal
The code is as follows |
Copy Code |
SVN checkout file:///f:/lycsvn/repos1/
|
B, customer service side and server can use
4. View the position remotely
The code is as follows |
Copy Code |
SVN list Svn://ip/shop
|
5. Checkout the position file to local
The code is as follows |
Copy Code |
SVN checkout Svn://ip/test F:/TESTSVN
|
6. Need to submit a position after modifying the file
The code is as follows |
Copy Code |
SVN commit–message "Shuacommand" –username=shua–password=redhat f:/testsvn
|
7. What about new documents?
The code is as follows |
Copy Code |
SVN add F:/TESTSVN SVN commit--m "Testmessages" f:/testsvn
|
Second, repos configuration file modification
The code is as follows |
Copy Code |
CONF/PASSWD Plus username = password Conf/svnserve.conf
#anon-access = Read #auth-access = Write #password-db = passwd Amended to Anon-access = None auth-access = Write Password-db = passwd
|