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.

5 Responses to “Using SVN on OS X”  

  1. Gravatar Icon bob

    That was a bit brief.

  2. Gravatar Icon dre

    What and where is a “.profile”?

  3. Gravatar Icon Blast_Hardcheese

    .profile is a hidden file in your home directory, to edit it from the terminal using TextEdit, type:

    touch ~/.profile # This creates the file (if it doesn’t exist)
    open -e ~/.profile # This will open the file using TextEdit

    In your ~/.profile, make sure to have this line:

    export PATH=$PATH:/usr/local/bin as the tutorial said. The next time you open a terminal window it will parse this file and add /usr/local/bin to your path.

  4. Gravatar Icon Christian Schenk

    Alternatively you might want to try ZigVersion.

  1. Using SVN on OS X for checkout at Dan Cameron 2.doh

Add your comment below, or trackback from your own site.
Subscribe to these comments.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


Creative Commons License