Showing posts with label SVN. Show all posts
Showing posts with label SVN. Show all posts

Thursday, June 7, 2012

Set up a svn server on linux quickly

Here is a quick guide for setting up a basic svn server on a linux platform. If you are looking for a detailed configuration, please refer to the manual of svn.
  1. yum -y intall subversion  #install svn
  2. svnadmin create /xx/svn_repository/plancky_code   #create a repository
  3. cd /xx/svn_reposity/plancky_code and then modify server.conf, passwd   # add user and password
      • vim server.conf and uncomment "password-db = passwd"
      • vim passwd and add an item "username=password"
  4. svnserve -d -r /xx/svn_repository/plancky_code   # start svn server
  5. svn import /xx/plancky svn://localhost/plancky_code -m initial import --username username --password password  #import plancky to repository
  6. svn co svn://localhost/plancky_code --username username --password password  #check out code from repository
    • ERROR: If meeting Error"SVN: could not use external editor to fetch log message", we need to add a SVN_EDITOR to bash configuration
        •       vim ~/.bash_profile
        •       export SVN_EDITOR="/usr/bin/vim"
        •       reopen the terminal to load the bash configuration