Let’s suppose I’ve designated my Subversion repository to be /home/svn/.
Now I want to create a project “wordpress”:
# svnadmin create /home/svn/wordpress
Assuming you use Apache, make sure that “wordpress” is owned by the Apache user; e.g. nobody.
# chown -R nobody:nobody /home/svn/wordpress
Now go to the “wordpress” directory that you wish to Subversion.
# cd /home/kzhiwei/wordpress/
Note that this is distinct from the Subversion project folder that was created previously. Then import:
# svn import . file:///home/svn/wordpress
You should get a whole bunch of messages listing the files that have been imported from /home/kzhiwei/wordpress/ into /home/svn/wordpress/.