Download ArticleDownload Article

Subversion, sometimes called SVN, is an open-source system that remembers every change made to your files and directories. It can be helpful if you'd like to track how your documents have changed over time or to recover an older version of a file. Start at Step 1 for detailed instructions for installing Subversion on Mac OS X.

Part 1
Part 1 of 2:

Installing

Download Article
  1. How.com.vn English: Step 1 Navigate to http://subversion.apache.org/packages.html#osx....
    Navigate to http://subversion.apache.org/packages.html#osx. There you will find a number of binaries that you can download, each having various requirements. Pick the one most appropriate for your needs.
  2. How.com.vn English: Step 2 Unzip the .
    pkg file. It should create a Subversion installer on your desktop. Double click that file, and follow the installation steps as directed.
    Advertisement
  3. How.com.vn English: Step 3 Open the Terminal, located in the Utilities folder.
    Alternately, search in Spotlight for Terminal. Enter the following at the [username]$ prompt:
    • svn [enter]
      How.com.vn English: Step 3 Open the Terminal, located in the Utilities folder.
    • If that returns "Type 'svn help' for usage," then svn is working correctly.
      How.com.vn English: Step 3 Open the Terminal, located in the Utilities folder.
    • If /usr/local/bin is not in your path, edit your .profile and add a line like the following:
      How.com.vn English: Step 3 Open the Terminal, located in the Utilities folder.
      • export PATH=$PATH:/usr/local/bin
    • Open another Terminal window and try again with: svn [enter]
      How.com.vn English: Step 3 Open the Terminal, located in the Utilities folder.
  4. Advertisement
Part 2
Part 2 of 2:

Set Up

Download Article
  1. How.com.vn English: Step 1 Set up an SVN server.
    You will need this to distribute a Subversion project.
  2. How.com.vn English: Step 2 Launch Terminal, then create a directory called svnroot in your account directory, as follows:
    mkdir svnroot
    • Type: svnadmin create /Users/[your username]/svnroot
      How.com.vn English: Step 2 Launch Terminal, then create a directory called svnroot in your account directory, as follows:
    • That creates your server!
      How.com.vn English: Step 2 Launch Terminal, then create a directory called svnroot in your account directory, as follows:
  3. How.com.vn English: Step 3 ...
    Use the svn server with Terminal. You can checkout in the terminal with this command: svn checkout file:///Users/[your username]/svnroot
    • For remote access, enable "ssh access" (in System Preferences/Sharing) and checkout with: svn checkout svn+ssh://my.domain.com/Users/[your username]/svnroot
      How.com.vn English: Step 3 ...
  4. How.com.vn English: Step 4 Set up a Subversion client.
    For example, svnX supports all current versions of Mac OS X from 10.5 to 10.8. You can get it at http://code.google.com.
  5. How.com.vn English: Step 5 After the download, start SVNx and you will see two windows named Working Copies and Repositories.
    Under Repositories, add the URL und Login Data from the SVN Server.
    • Open the window; if you get an error, check the LogIn.
      How.com.vn English: Step 5 After the download, start SVNx and you will see two windows named Working Copies and Repositories.
    • Switch to the Terminal and type: svn import -m "your Import message" /my/local/project/path /my/remote/svn/repository This command adds all files from the local Project to the SVN Server.
      How.com.vn English: Step 5 After the download, start SVNx and you will see two windows named Working Copies and Repositories.
    • Add the path of your SVN repository (from the SVN server) to the list in the Working Copy window in SVNx.
      How.com.vn English: Step 5 After the download, start SVNx and you will see two windows named Working Copies and Repositories.
  6. How.com.vn English: Step 6 In SVNx open your working copy.
    When you're working on this Project, you will see your modifications here.
  7. How.com.vn English: Step 7 Test it.
    Make a small modification on your working copy, then refresh the the Working Copy window.
    • SVNx displays all files with modifications. Press the Commit button to add it to the SVN Server Repository.
  8. How.com.vn English: Step 8 If you prefer...
    If you prefer to work on the Subversion repository directly from the Finder, consider using either SCPlugin or SVN Scripts for Finder.
  9. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      • Various additional documentation exists in the doc/ subdirectory of the Subversion source. See the file doc/README for more information.
      • The primary documentation for Subversion is the free book Version Control with Subversion, a.k.a. "The Subversion Book." You can get it from http://svnbook.red-bean.com/
      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      References

      1. Version Control with Subversion - The Subversion Book
      2. [http:// weblogs.asp.net/fmarguerie/archive/2005/04/27/404793.aspx SVN Servers] - A SVN Server List
      3. O'REILLY MacDevCenter Subversion Tutorial

      About This Article

      Tested by:
      How.com.vn Technology Team
      How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 19 people, some anonymous, worked to edit and improve it over time. This article has been viewed 960,112 times.
      How helpful is this?
      Co-authors: 19
      Updated: September 1, 2022
      Views: 960,112
      Categories: Mac OS X
      Thanks to all authors for creating a page that has been read 960,112 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement