How To Install Subversion On Mac OS X: 11 Steps (with Pictures)
Có thể bạn quan tâm
- Log in / Sign up
- Installing |
- Set Up |
- Tips
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 20 people, some anonymous, worked to edit and improve it over time. The wikiHow Tech Team also followed the article's instructions and verified that they work. This article has been viewed 968,644 times. Learn more...
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.
Steps
Part 1 Part 1 of 2:Installing
-
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. -
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 Open the Terminal, located in the Utilities folder. Alternately, search in Spotlight for Terminal. Enter the following at the [username]$ prompt: - svn [enter]
- If that returns "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
- Open another Terminal window and try again with: svn [enter]
Advertisement - svn [enter]
Set Up
-
1 Set up an SVN server. You will need this to distribute a Subversion project. -
2 Launch Terminal, then create a directory called svnroot in your account directory, as follows: mkdir svnroot - Type: svnadmin create /Users/[your username]/svnroot
- That creates your server!
- Type: svnadmin create /Users/[your username]/svnroot
-
3Use 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
- For remote access, enable "ssh access" (in System Preferences/Sharing) and checkout with: svn checkout svn+ssh://my.domain.com/Users/[your username]/svnroot
-
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 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.
- 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.
- Add the path of your SVN repository (from the SVN server) to the list in the Working Copy window in SVNx.
- Open the window; if you get an error, check the LogIn.
-
6 In SVNx open your working copy. When you're working on this Project, you will see your modifications here. -
7 Test it. Make a small modification on your working copy, then refresh the Working Copy window. - SVNx displays all files with modifications. Press the Commit button to add it to the SVN Server Repository.
-
8 If you prefer to work on the Subversion repository directly from the Finder, consider using either SCPlugin or SVN Scripts for Finder. Advertisement
Expert Q&A
Search Add New Question Ask a Question 200 characters left Include your email address to get a message when this question is answered. Submit AdvertisementTips
- Various additional documentation exists in the doc/ subdirectory of the Subversion source. See the file doc/README for more information. Thanks Helpful 0 Not Helpful 0
- 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/ Thanks Helpful 0 Not Helpful 0
You Might Also Like
References
- Version Control with Subversion - The Subversion Book
- [http:// weblogs.asp.net/fmarguerie/archive/2005/04/27/404793.aspx SVN Servers] - A SVN Server List
- O'REILLY MacDevCenter Subversion Tutorial
About This Article
Tested by: wikiHow Technology Team wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 20 people, some anonymous, worked to edit and improve it over time. This article has been viewed 968,644 times. How helpful is this? Co-authors: 20 Updated: October 2, 2025 Views: 968,644 Categories: Mac OS X In other languages Spanish Italian Russian Indonesian Dutch- Send fan mail to authors
Is this article up to date?
Yes No
Advertisement Cookies make wikiHow better. By continuing to use our site, you agree to our cookie policy. Tested by: wikiHow Technology Team Click a star to vote Co-authors: 20 Updated: October 2, 2025 Views: 968,644 Quizzes & Games
You Might Also Like
Featured Articles
Trending Articles
Featured Articles
Featured Articles
Watch Articles
Trending Articles
Quizzes & Games
- Categories
- Computers and Electronics
- Operating Systems
- Mac
- Mac OS X
- Home
- About wikiHow
- Experts
- Jobs
- Contact Us
- Site Map
- Terms of Use
- Privacy Policy
- Do Not Sell or Share My Info
- Not Selling Info
- Contribute
Follow Us
×Keep up with the latest tech with wikiHow's free Tech Help Newsletter
Subscribe You're all set! X --Từ khóa » Cài đặt Svn Trên Mac Os
-
Cài đặt Và Sử Dụng Công Cụ Quản Lý Mã Nguồn SVN Trên Mac
-
SnailSVN Lite: SVN For Finder 4+ - Mac App Store
-
Bắt đầu Với Subversion Bằng SvnX - 101 Help
-
SmartSVN - Nền Tảng Subversion (SVN) độc Lập - MacLife
-
Lập Trình Theo Nhóm Sử Dụng XCode Và SVN - Openplanning
-
Cài đặt Và Sử Dụng Tortoise SVN - Openplanning
-
Các Bác Có Thể Chia Sẻ Phần Mềm Svn Tốt Trên Mac Cho Em ... - Tinhte
-
Svn For Eclipse On Mac Os Lion - Stack Overflow
-
SmartSVN – SVN Client
-
Installing Subversion For MacOS - Beanstalk Help
-
Downloads - TortoiseSVN
-
Các Thiết L Của TortoiseSVN
-
Cài đặt Công Cụ Dòng Lệnh (Command Line ) Trong Mac OS X (không ...