In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Introduction to SVN
SVN is a version management system, formerly known as CVS, is the cornerstone of open source software. Even in the case of full communication, there must be confusion when multiple people maintain the same source code, and the version management system is designed to solve these problems.
Some concepts in SVN:
A. repository (source code base)
A place where the source code is stored uniformly
B. Checkout (extraction)
When you don't have the source code, you need a copy from repository checkout
C. Commit (submit)
When you have modified the code, you need to Commit to repository
D. Update (update)
When you have Checkout a copy of the source code, Update you can synchronize with the source code on Repository, and the code on hand will have the latest changes.
Introduction to TortoiseSVN
TortoiseSVN is a free open source client for the Subversion version control system that can manage files and directories over time. Files are saved in a central version library, which is very much like an ordinary file server, except that it can remember every change to the file and directory. You can restore the file to the previous version, and you can check the history to know what changes were made to the data and who made the changes. This is why many people regard Subversion and version control systems as "time machines".
Client use
The use of Windows client TortoiseSVN
1, installation of TortoiseSVN client
The test selected TortoiseSVN 1.6.5 client to pay the Chinese language package.
2. Update the files from the client to the server (user1 operation)
Create a new empty directory and right-click Checkout (extract)
Svn://192.168.103.26 / winne
Just enter the authorized user account in the passwd file
Add some file tests to the directory. Then right-click TortoiseSVN- > ADD in the empty space to add the list to the server.
You can see the file you just submitted in the version library browser.
3, the client pulls and reads data on the server (user2 operation)
User2 create an empty directory user2 on the machine, right-click Checkout (extract)
Fill in the address: svn://192.168.103.26/winne output to G:\ user2 to confirm
Add a new.txt file, and then Commit (submit) after the prompt permission error, user2 does not have write permission, change to the identity of user1 can be submitted successfully.
The use of Linux client
The client operation process is generally as follows:
User A: checkout (extract)-> add (add new file)-> commit (submit)
User B: SVN log (View updates)-> update (newer version)
Installation of 1D SVN
Yun-y install subversion
2Common commands of Linux svn
() is the abbreviation of the order.
Checkout (co) extraction
Commit (ci) submission
Update (up) update
List (ls) list
3. Checkout (co) extracts files from the svn server
(user1) Operation flow
[root@TEST ~] # svn co svn://192.168.103.26/winne
Authentication realm: My First Repository
Password for 'root':
Authentication realm: My First Repository
Username: user1 / enter user name
Password for 'user1': / enter password
A winne/Cosmic Ride-BeFour.lrc
A winne/20070716171657126.pdf
A winne/svnbook.pdf
Revision 1. / checkout (co) was extracted successfully. You can see that Checked out version is 1.
Note: you can use access with a user name and password:
Svn co-username user1-password user1 svn://192.168.103.26/winne
[root@TEST ~] # ll
Drwxr-xr-x 3 root root 4096 Sep 23 09:02 winne / winne directory is automatically generated by SVN
Drwxr-xr-x 2 root root 4096 Jul 30 02:06 tasks
[root@TEST ~] # cd winne
[root@TEST winne] # ll
Total 2868
-rw-r--r-- 1 root root 1566968 Sep 23 08:53 20070716171657126.pdf
-rw-r--r-- 1 root root 2397 Sep 23 08:53 Cosmic Ride-BeFour.lrc
-rw-r--r-- 1 root root 1354300 Sep 23 08:53 svnbook.pdf
4Jing user1 modify the file and submit it
[root@TEST winne] # vi testsvn.txt
[root@TEST winne] # svn add testsvn.txt / add testsvn.txt to the library
A testsvn.txt
[root@TEST winne] # svn commit-m "test" testsvn.txt / annotated as test
Adding testsvn.txt
Transmitting file data.
Committed revision 2. / version 2 is updated to 2
5Jing user2 back to window client updated version
Back to the Windows client to see the log, the version has been updated to 2, comment test, the client update can be updated to the new version.
6. Windows client version rollback
Select update to verisiom in the menu and select version 1.
7 rollback operation of Linux version:
[root@TEST winne] # svn up-r 1
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.