Linux system installation and use of SVN experience and problems encountered

Source: Internet
Author: User
Tags svn update

  1. The SVN service is already installed in the system.

  2. New file

  3. Create a repository in the newly created file

  4. Repository configuration

  5. Restart SVN service

  6. 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.

  7. 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

  8. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.