In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to install TortoiseSVN client in CentOS". In daily operation, I believe many people have doubts about how to install TortoiseSVN client in CentOS. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to install TortoiseSVN client in CentOS". Next, please follow the editor to study!
1. CentOS installs TortoiseSVN
The code is as follows:
Yum install-y subversion
II. SVN client command
1. View the help command: svn help
Start the service
Start the service using the command svnserve
The code is as follows:
Svnserve-d-r / srv/svn/repos
You can also add the port number
The code is as follows:
Svnserve-d-listen-port 9999-r / srv/svn/repos
Note: the following path must be a warehouse path created by svnadmin, otherwise an error will be reported: Not a repository
2. Synchronize (checkout) server data to local command: svn checkout [directory] svn co [directory]
Eg:
The code is as follows:
# cd / www/website
# svn co svn://svn_site_url. /
3. Submit (commit) local documents to the server command: svn commit-m "[directory | file] svn ci-m" [directory | file]
4. Update (update) server data to local command: svn update [directory | file] svn up [directory | file]
5. View log command: svn log [directory | file]
6. Add local data to the server
Command: svn add
7. Project Export export
Command:
The code is as follows:
Svn export-force svn_project_dir target_dir
Some common commands are attached.
1. Checkout the file to the local directory
Svn checkout path (path is the directory on the server)
For example: svn checkout svn://192.168.1.1/pro/domain
Abbreviation: svn co
2. Add new files to the version library
Svn add file
For example: svn add test.php (add test.php)
Svn add * .php (add all php files in the current directory)
3. Submit the changed files to the version library
Svn commit-m "LogMessage" [- N] [--no-unlock] PATH (use the-no-unlock switch if hold lock is selected)
For example: svn commit-m "add test file for my test" test.php
Abbreviation: svn ci
4. Lock / unlock
Svn lock-m "LockMessage" [--force] PATH
For example: svn lock-m "lock test file" test.php
Svn unlock PATH www.yisu.com
5. Update to a certain version
Svn update-r m path
For example:
If there is no directory behind svn update, by default, all files in the current directory and subdirectories will be updated to the latest version.
Svn update-r 200 test.php (restore the file test.php in the version library to version 200)
Svn update test.php (updates, synchronized with the version library. If you are prompted to expire at the time of submission, it is due to a conflict. You need to update first, modify the file, then clear svn resolved, and then submit commit)
Abbreviation: svn up
6. Check the status of a file or directory
1) svn status path (the status of files and subdirectories under the directory, which is not displayed in the normal state)
[?: not under the control of svn; M: content modified; C: conflict occurred; A: scheduled to be added to version library; K: locked]
2) svn status-v path (showing file and subdirectory status)
The first column remains the same, the second column shows the working version number, and the third and fourth columns show the last modified version number and modifier.
Note: the three commands svn status, svn diff, and svn revert can be executed without a network because svn retains the original copy of the local version in the local .svn.
Abbreviation: svn st
7. Delete files
Svn delete path-m "delete test fle"
For example: svn delete svn://192.168.1.1/pro/domain/test.php-m "delete test file"
Or directly svn delete test.php and then svn ci-m 'delete test file', recommend this
Abbreviation: svn (del, remove, rm)
8. View the log
Svn log path
For example, svn log test.php displays all changes to this file and the changes in its version number
9. View file details
Svn info path
For example: svn info test.php
10. Compare the differences
Svn diff path (compare modified files with base version)
For example: svn diff test.php
Svn diff-r MVA n path (compare the difference between version m and version n)
For example: svn diff-r 20014 0201 test.php
Abbreviation: svn di www.yisu.com
11. Merge the differences between the two versions into the current file
Svn merge-r mpurn path
For example: svn merge-r 200 svn merge 205 test.php (merge the differences between versions 200 and 205 into the current file, but there are usually conflicts that need to be dealt with)
12. SVN help
Svn help
Svn help ci
At this point, the study on "how to install the TortoiseSVN client in CentOS" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.