返回列表

Ubuntu下使用SVN 示例

默认分类 2013-02-06 11:58:22

Ubuntu下安装安装SVN:

    sudo apt-get install subversion
    sudo svnadmin create /home/user/test
    cd /home/user/test
    sudo chmod -R 777 */*

Ubuntu下使用SVN新建项目完整示例:

    sudo mkdir /usr/source/test
    cd /usr/source/test
    sudo vim a.txt

    sudo svn import -m 'test' /usr/source/test file:///home/user/test

    sudo mkdir /usr/target/test
    sudo svn checkout file:///home/user/test /usr/target/test

    cd /usr/target/test
    sudo mv a.txt b.txt

    sudo svn update 

    sudo vim c.txt
    sudo add c.txt

    sudo mkdir sub
    sudo cp ../c.txt c.txt
    cd ..
    sudo svn add *
    sudo svn ci -m ''

    sudo rm *
    sudo svn update