This article will give you a detailed introduction to the use of svn-related commands and repos configuration in linux. If you need to know more, please refer.
Recently, to facilitate program management, svnserver has been installed on the server and is scheduled to be updated on a regular basis!
Windows server 2008 in the server environment linux in the client is required for the command environment
I. Instructions
A. Use it on the server (if the server is linux, replace the following windows dos command with the corresponding shell command)
1. Create a repository
The Code is as follows: |
Copy code |
Svnadmin create test/
|
2. initialize the Repository
The Code is as follows: |
Copy code |
Md source
|
Create an object in this directory
The Code is as follows: |
Copy code |
Svn import source/file: // f:/lycsvn/repos1/-m "init source"
|
3. test whether the new position is normal.
The Code is as follows: |
Copy code |
Svn checkout file: // f:/lycsvn/repos1/
|
B. Both the client and server can be used.
4. remotely view positions
The Code is as follows: |
Copy code |
Svn list svn: // IP/shop
|
5. Local checkout the location file
The Code is as follows: |
Copy code |
Svn checkout svn: // IP/test f:/testsvn
|
6. Submit the 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 files?
The Code is as follows: |
Copy code |
Svn add f:/testsvn Svn commit -- m "testmessages" f:/testsvn
|
Ii. Modify the repos configuration file
The Code is as follows: |
Copy code |
Conf/passwd + username = Password Conf/svnserve. conf
# Anon-access = read # Auth-access = write # Password-db = passwd Change Anon-access = none Auth-access = write Password-db = passwd
|