I am using subversion as a versioning system on my local computer. It works great. For integration with windows explorer, I use TurtoiseSVN. Also great.
I thought I'd list some handy subversion and turtoise commands I often use in this blog. Complete documentation can be found on the subversion and TurtoiseSVN websites, by the way.
Note: my subversion repository is located in F:\sv, my working directories are in F:\xampp\htdocs\.
Start the svnserve server:
svnserve -d
Add a new project to the subversion repository:
F:\>svn import "F:\Documents\website" file:///sv/website -m "initial import"
Checkout a project in a new working directory:
- Open Windows Explorer, browse to the new working directory, for example F:\xampp\htdocs\website.
- Click rightmouse button on this directory and click 'SVN Checkout'.
- In the field 'URL of repository' fill in the location of the repository for this project, for example file:///F:/sv/website.
Commit changes:
- From Windows Explorer, rightmouse click on the file or the directory you want to commit.
- Choose 'SVN Commit'. You will see all files that have changed and - if you tick the checkbox 'Show unversioned files' - also files that are not under version control.
- You can now select the files you want to commit, write a comment and click OK.
- If you want to see the exact differences in a file, you can right-mouseclick the file in the list and choose 'Compare with base'.
List all projects in the subversion repository:
svn list --verbose file:///F:/sv
Saturday, May 10, 2008
Handy subversion commands
Posted by
Sandra Both
at
12:18 PM
0
comments
Labels: Subversion