- Install Subversion.
- That tells you to run
svn help, so do that.
- Nothing promising, but it suggests http://subversion.tigris.org/, so try that.
- The project moved to http://subversion.apache.org/, so go there.
- Go to the FAQ.
- Choose “How do I create a repository? How do I import data into it?”
- That says read the README.
- The README doesn’t answer the question, but links to the book, http://svnbook.red-bean.com/
- Go to the book.
- Choose the multiple page HTML edition.
- Go to Chapter 2, Basic Usage.
- The first page is called Help! but doesn’t give help, only says how to use help, which I knew.
- The next page, “Getting Data into Your Repository” assumes you already have a repository.
- Okay, the next page is “Creating a Working Copy”. That’s what I want. But it assumes I have a remote copy somewhere else (because I managed to set that up despite not knowing how to initialize it) so that’s no use.
- The next page, “Basic Work Cycle” assumes you have a repository.
- Go back to the “Basic Usage” contents page and try to work out what page explains initializing a repository. Apparently none of them. Maybe basic usage doesn’t require a repository after all.
- Go to the full contents page and have a good look.
- Advanced Topics? Well, no, it isn’t advanced, is it?
- Branching and Merging? No.
- Aha! Chapter 5, “Repository Administration”, includes a page on “Creating and Configuring Your Repository”
- That says
svn help | grep svnadminto confirm that I didn’t miss the reference the first time.
svnadmin create .
- Add a file.
- Apparently I can’t add a file because “‘.’ is not a working copy”.
svn co .and observe the unhelpful error.
svn co $PWDand observe the unhelpful error.
svn help coand fail to find a mention of local paths, but observe that it wants a URL.
svn co file://$PWD
- Thank you, Subversion!
svnadmin create && svn co file://$PWD