The SVN service is already installed in the system.
New file
Create a repository in the newly created file
Repository configuration
Restart SVN service
Initial charge: If you want to reach the client submission file, a directory under the server (if the directory name is HTML) is also synchronized Automatic Updates, using the following method (hooks)
First step: Check out on the server
SVN Co svn://localhost/could (small turtle-attached address) HTML (server folder address)
Step Two: create a new Post-commit file
[email protected] hooks]# pwd
/application/svndata/could/hooks
[email protected] hooks]# VI post-commit
[email protected] hooks]# cat Post-commit
#!/bin/bash
web=/var/www/html/
Export. UTF-8
svn update $WEB--username svnserver--password ' svnserverpwd '
[email protected] hooks]# chmod 755 post-commit
[email protected] hooks]# ll Post-commit
-rwxr-xr-x. 1 root root 9 21:18 post-commit
[email protected] hooks]#./post-commit
At Revision 5.
I met a coding problem in./post-commit, and the results are as follows
[Email protected] hooks]#./post-commit
-bash:./post-commit:/bin/bash^m:bad Interpreter: No file or directory
The approach is: on Linux systems
Yun Install Dos2unix-y
Then in Dos2unix Post-commit (that is, the file is encoded).
This is going to happen again. There's no problem with/post-commit.
Good installation introduction Address: http://gongwen.sinaapp.com/article-135.html
Linux system installation and use of SVN experience and problems encountered