I appreciated this summary of how to install and setup subversion on a windows system, as well as the subversion book, which is a very thorough reference for subversion...however, I wanted to take it a step further and give you the complete idiots guide - you should be up and running within 5 minutes.
Install it
* Download windows binary
* Leave all defaults as they are
Open msdos command prompt
* cd c:
* mkdir repos
Create a repository
* svnadmin create /repos/project1
Import a bunch of files into the repository
* svn import -m "initial import" /xampp/htdocs/samples file:///repos/project1 (I happen to have xampp installed on my windows machine, but use whatever your document root is for your web files.
Now you have created a repository, so you want to checkout a copy:
* svn checkout file:///repos/project1 /xampp/htdocs/newcopy
Now you want to modify some files and check them in, so go modify some files within your new copy.
* cd /xampp/htdocs/samples
* svn commit -m "changed some files just for the heck of it"
Now you want to see the files in your repository:
* svn list -v file:///repos/project1
You should see most of the files have version 1 except for the ones you modified and committed, they are version 2. Considered your files versioned!
Subscribe to:
Post Comments (Atom)
Monday, February 12, 2007
No-Brainer Guide to Getting Started with Subversion
I appreciated this summary of how to install and setup subversion on a windows system, as well as the subversion book, which is a very thorough reference for subversion...however, I wanted to take it a step further and give you the complete idiots guide - you should be up and running within 5 minutes.
Install it
* Download windows binary
* Leave all defaults as they are
Open msdos command prompt
* cd c:
* mkdir repos
Create a repository
* svnadmin create /repos/project1
Import a bunch of files into the repository
* svn import -m "initial import" /xampp/htdocs/samples file:///repos/project1 (I happen to have xampp installed on my windows machine, but use whatever your document root is for your web files.
Now you have created a repository, so you want to checkout a copy:
* svn checkout file:///repos/project1 /xampp/htdocs/newcopy
Now you want to modify some files and check them in, so go modify some files within your new copy.
* cd /xampp/htdocs/samples
* svn commit -m "changed some files just for the heck of it"
Now you want to see the files in your repository:
* svn list -v file:///repos/project1
You should see most of the files have version 1 except for the ones you modified and committed, they are version 2. Considered your files versioned!
Install it
* Download windows binary
* Leave all defaults as they are
Open msdos command prompt
* cd c:
* mkdir repos
Create a repository
* svnadmin create /repos/project1
Import a bunch of files into the repository
* svn import -m "initial import" /xampp/htdocs/samples file:///repos/project1 (I happen to have xampp installed on my windows machine, but use whatever your document root is for your web files.
Now you have created a repository, so you want to checkout a copy:
* svn checkout file:///repos/project1 /xampp/htdocs/newcopy
Now you want to modify some files and check them in, so go modify some files within your new copy.
* cd /xampp/htdocs/samples
* svn commit -m "changed some files just for the heck of it"
Now you want to see the files in your repository:
* svn list -v file:///repos/project1
You should see most of the files have version 1 except for the ones you modified and committed, they are version 2. Considered your files versioned!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment