How to Install Subversion on Mac OS X
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...
Part 1 of 2:
Install From a Binary Package
-
How to Install Subversion on Mac OS X Picture 1
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. -
How to Install Subversion on Mac OS X Picture 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. -
How to Install Subversion on Mac OS X Picture 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 to Install Subversion on Mac OS X Picture 4
- If that returns "Type 'svn help' for usage," then svn is working correctly.
How to Install Subversion on Mac OS X Picture 5
- If /usr/local/bin is not in your path, edit your .profile and add a line like the following:
How to Install Subversion on Mac OS X Picture 6
- export PATH=$PATH:/usr/local/bin
- Open another Terminal window and try again with: svn [enter]
How to Install Subversion on Mac OS X Picture 7
- svn [enter]
Part 2 of 2:
Set Up Your Subversion Environment
-
How to Install Subversion on Mac OS X Picture 8
Set up an SVN server. You will need this to distribute a Subversion project. -
How to Install Subversion on Mac OS X Picture 9
Launch Terminal, then create a directory called svnroot in your account directory, as follows: mkdir svnroot- Type: svnadmin create /Users/[your username]/svnroot
How to Install Subversion on Mac OS X Picture 10
- That creates your server!
How to Install Subversion on Mac OS X Picture 11
- Type: svnadmin create /Users/[your username]/svnroot
-
How to Install Subversion on Mac OS X Picture 12
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 to Install Subversion on Mac OS X Picture 13
- 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 to Install Subversion on Mac OS X Picture 14
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. -
How to Install Subversion on Mac OS X Picture 15
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 to Install Subversion on Mac OS X Picture 16
- 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 to Install Subversion on Mac OS X Picture 17
- Add the path of your SVN repository (from the SVN server) to the list in the Working Copy window in SVNx.
How to Install Subversion on Mac OS X Picture 18
- Open the window; if you get an error, check the LogIn.
-
How to Install Subversion on Mac OS X Picture 19
In SVNx open your working copy. When you're working on this Project, you will see your modifications here. -
How to Install Subversion on Mac OS X Picture 20
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.
-
How to Install Subversion on Mac OS X Picture 21
If you prefer to work on the Subversion repository directly from the Finder, consider using either SCPlugin or SVN Scripts for Finder.
4.2 ★ | 20 Vote
You should read it
- Configuring Terminal Services Gateway of Windows Server 2008 (Part 1)
- 6 interesting terminal commands on Mac
- Configuring Terminal Services Gateway of Windows Server 2008 (Part 2)
- How to delete the user and the machine name in the command prompt on Terminal
- How to use Terminal on a Mac
- 8 best free Terminal Emulator apps for Android
- How to enter and exit Focus Mode in Windows Terminal
- Notable changes in Windows Terminal ver 0.11
- How to fix the problem of being unable to enter Terminal in Linux
- How to customize Windows Terminal application
- Top 5 useful Terminal tips for Mac users
- How to customize Terminal on Mac