How to Install Subversion on Mac OS X

简介: How to Install Subversion on Mac OS X740,518 views17 EditorsEdited 8 days agoTwo Parts:Install From a Binary PackageSet Up Your Subver...

How to Install Subversion on Mac OS X

  • 740,518 views
  • 17 Editors

  • Edited 8 days ago

Two Parts:Install From a Binary PackageSet Up Your Subversion Environment

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 of 2: Install From a Binary Package
  1. Install Subversion on Mac OS X Step 1.jpg
    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.
    Ad
  2. Install Subversion on Mac OS X Step 2.jpg
    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.
  3. Install Subversion on Mac OS X Step 3.jpg
    3
    Open the Terminal, located in the Utilities folder. Alternately, search in Spotlight for Terminal. Enter the following at the [username]$ prompt:
    • svn [enter]
      Install Subversion on Mac OS X Step 3Bullet1.jpg
    • If that returns "Type 'svn help' for usage," then svn is working correctly.
      Install Subversion on Mac OS X Step 3Bullet2.jpg
    • If /usr/local/bin is not in your path, edit your .profile and add a line like the following:
      Install Subversion on Mac OS X Step 3Bullet3.jpg
      • export PATH=$PATH:/usr/local/bin
    • Open another Terminal window and try again with: svn [enter]
      Install Subversion on Mac OS X Step 3Bullet4.jpg

Part 2 of 2: Set Up Your Subversion Environment
  1. Install Subversion on Mac OS X Step 4.jpg
    1
    Set up an SVN server. You will need this to distribute a Subversion project.
  2. Install Subversion on Mac OS X Step 5.jpg
    2
    Launch Terminal, then create a directory called svnroot in your account directory, as follows: mkdir svnroot
    • Type: svnadmin create /Users/[your username]/svnroot
      Install Subversion on Mac OS X Step 5Bullet1.jpg
    • That creates your server!
      Install Subversion on Mac OS X Step 5Bullet2.jpg
  3. Install Subversion on Mac OS X Step 6.jpg
    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
      Install Subversion on Mac OS X Step 6Bullet1.jpg
  4. Install Subversion on Mac OS X Step 7.jpg
    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. Install Subversion on Mac OS X Step 8.jpg
    5
    After the download, start SVNx and you will see two windows namedWorking 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.
      Install Subversion on Mac OS X Step 8Bullet1.jpg
    • 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.
      Install Subversion on Mac OS X Step 8Bullet2.jpg
    • Add the path of your SVN repository (from the SVN server) to the list in the Working Copy window in SVNx.
      Install Subversion on Mac OS X Step 8Bullet3.jpg
  6. Install Subversion on Mac OS X Step 9.jpg
    6
    In SVNx open your working copy. When you're working on this Project, you will see your modifications here.
  7. Install Subversion on Mac OS X Step 10.jpg
    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. Install Subversion on Mac OS X Step 11.jpg
    8
    If you prefer to work on the Subversion repository directly from the Finder, consider using either SCPlugin or SVN Scripts for Finder.
    Ad

We could really use your help!

Can you tell us about
pest control?
Yes I can
Can you tell us about
recruitment?
Yes I can
Can you tell us about
shamanism?
Yes I can
Can you tell us about
iPads?
Yes I can

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/
Ad

Related wikiHows

How to 
Get Current Date in Asp.Net

How to 
Install Subversion on Windows 7

How to 
Personalize Your Mac OS X Desktop

How to 
Install Snak IRC Program for Mac OS X

How to 
Stop an Application from Opening at Startup With Mac OS X

How to 
Burn a CD Using Mac OS X

How to 
Make a DMG File on a Mac

Sources and Citations

Article Info

Categories: Mac OS X

Recent edits by: Yoko Kanai, WanderWoman, Anuj_Kumar1

In other languages:

Español: Cómo instalar Subversión en Mac OS X, Português: Como Instalar o Subversion no Mac OS X, Italiano: Come Installare Subversion su Mac OS X, Русский: установить Subversion на Mac OS X, Deutsch: Subversion unter Mac OS X installieren

目录
相关文章
|
1月前
Mac Brew install慢的问题
Mac Brew install慢的问题
25 1
|
开发工具 git iOS开发
Mac使用brew install 安装wget工具报错 fatal: not in a git directory Error: Command failed with exit 128: git
Mac使用brew install 安装wget工具报错 fatal: not in a git directory Error: Command failed with exit 128: git
1700 0
Mac使用brew install 安装wget工具报错 fatal: not in a git directory Error: Command failed with exit 128: git
|
应用服务中间件 nginx
mac install nginx
下载 Nginx 源码包 下载页: http://nginx.org/en/download.html 当前稳定版本: http://nginx.org/download/nginx-1.8.0.tar.
2161 1
Mac电脑 - 解决 brew install 报错Error: /usr/local/Homebrew is not writable. 的问题
Mac电脑 - 解决 brew install 报错Error: /usr/local/Homebrew is not writable. 的问题
1210 0
|
C语言
How to Install MUMPS on MAC: A step by step instruction
关注九天学者微信公众号(扫码关注)第一时间获取技术贴更新! FIHSES是基于MUMPS开发的用于热液流体模拟的,开发者将MUMPS源代码直接放在了FISHES里面,所以在进行编译FISHES 之前必须先编译MUMPS。
1680 0
|
分布式计算 Hadoop 数据格式
|
SQL 关系型数据库 Java
|
Shell
Mac环境pip install
Mac环境pip install问题
1901 0
|
关系型数据库 MySQL 数据安全/隐私保护
INSTALL MYSQL IN MAC
安装好MYSQL后,在System References中找到MYSQL,启动它。   启动之后在终端中输入添加MySQL路径的命令,把MYSQL路径添加到PATH中: PATH="$PATH":/usr/local/mysql/bin   在终端登录到MySQL的命令如下:mysql -u root -p 当你执行任何语句的时候如show databases是会出现类似以下的错误,请用SET PASSWORD修改密码。
850 0