SVN believes everyone is not unfamiliar, first contact with the company's projects, you may find that their SVN has automatic synchronization to the official site features.
Isn't it magical,
The following is an example of an SVN server installed under Windows, which teaches you a few lines of code to implement this function.
Usually SVN server we use VISUALSVN server-side software, SVN uses the free Tortoise SVN software locally.
Post-commit is under the hooks directory of SVN.
The Post-commit.bat code is as follows:
@echo OffSET repos=%1set rev=%2set svn= "C:/Program files/visualsvn server/bin/svn.exe" SET dir=%repos%/hooksset PATH=% path%; SVN update f:/wroot123/--username ww--password wwrem "f:/wroot123/" directory must first checkout
Baidu also has a lot of such tutorials, but because it is too complicated, look at the look on the don't want to learn, this article is a simplified version, I hope to help you.
Learn PHP on the PHP Chinese web.
This article is edited by the PHP Chinese web,
Article Address: http://www.php.cn/php-weizijiaocheng-374260.html
Please do not reprint ~ ~ ~