Loading...

Using SVN on OS X

I needed to figure out how to download the K2 theme from the SVN repository and I knew there was a better way then just right-click>save as. So I looked around and found out it’s extremely easy on OS X.First step, install SVN:

  1. Go to CodingMonkeys and Download Subversion for OS X. It’s an installer so no terminal use there.

Second Step, Check to see if SVN works.

  1. Open the Terminal, Located in /Application/Utilities and type: svn [enter]

If you have an output like: Type ’svn help’ for usage. Then svn is working correctly.
If /usr/local/bin is not in your path, edit your .profile and add a line like the following:
export PATH=$PATH:/usr/local/bin
Then open another Terminal window and try again with: svn [enter]

Step 3, use SVN. The best way is to use SVNx.

  1. Download SVNx and install.
  2. Start SVNx, two Windows with the names ‘Working Copy’ and ‘Repositories’ will open. Under Repositories add the Url und Login Data from the SVN Server.

For K2 I used http://getk2.com/svn/ as the path and named it whatever.

3. Double click on the created SVN Repository and you’re now connected.
4. To download the files from the SVN just click “SVN Checkout”.It is that easy.

Continued

If you don’t want to use SVNx and you want to stick with the terminal after installing SVN the checkout command is:

svn co url

This will “check out” all of the files you’ll need.

svn update url

will update all your file to the latest.

svn status url

And this will output a line-by-line description of all the changes.

svn diff url

You can output this to a file by using redirection:

svn diff url > my-patch.txt

That’s all folks, start downloading the newest wordpress or any other favorite software available through SVN.