Wednesday, October 9, 2013

Linux: create SVN project - branches, trunk and tags - first commit

Create a new SVN project

svnadmin create /var/svn-repos/{$project-name}
chown -R svn-user:svn-group /var/svn-repos/{$project-name}

Create branches and trunk, make first commit

cd ~
rm -rf svn-project
svn co file:///var/svn-repos/{$project-name} svn-project
cd svn-project
mkdir trunk
mkdir branches
mkdir tags
svn add *
svn ci -m "init deploy" *