How to Install Subversion on Mac OS X

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. 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. 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. 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]

Part 2 of 2: Set Up Your Subversion Environment

  1. 1

    Set up an SVN server. You will need this to distribute a Subversion project.

  2. 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!

  3. 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

  4. 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. 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.

    • 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.

  6. 6

    In SVNx open your working copy. When you‘re working on this Project, you will see your modifications here.

  7. 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. 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

时间: 2024-10-29 19:05:35

How to Install Subversion on Mac OS X的相关文章

Mac 操作系统安装 SVN server教程(Subversion With Mac OS X Tutorial)

Find recent articles on my github page: rubyrobot.github.io ? 2006-2014 Imagine Ecommerce Subversion With Mac OS X Tutorial Updated: April 2011 Subversion is a version control system that allows you to work with other people on a project and switch b

Mac 操作系统安装 SVN 服务器教程(Subversion With Mac OS X Tutorial)

Find recent articles on my github page: rubyrobot.github.io © 2006-2014 Imagine Ecommerce Subversion With Mac OS X Tutorial Updated: April 2011 Subversion is a version control system that allows you to work with other people on a project and switch b

Install Docker on Mac OS X(转)

Install Docker on Mac OS X You can install Docker using Boot2Docker to run docker commands at your command-line. Choose this installation if you are familiar with the command-line or plan to contribute to the Docker project on GitHub. Alternatively,

How to install Maven on Mac OS X Mavericks (10.9)

Step 1: Download Maven binaries from Maven Download Page. I was using Maven 3.0.5, so I downloaded apache-maven-3.0.5-bin.tar.gz. Step 2: You can install Maven at any location but since it's a one time process, I didn't wanted it in my user directory

Install Docker on Mac OS X

小白来山寨一把官网文档. Docker不能直接跑在OS X上,需要先安装下VirtualBox和boot2docker.boot2docker会帮我们启动vm,启动docker,并且本身提供一些管理命令. boot2docker也很轻量级,完全在内存里启动一个VM,只占24M大小,几秒内就可以启动. 安装过程 1) 下载VirtualVM-xxx-xxx.dmg,并安装. 2) 使用brew安装boot2docker以及docker brew install boot2docker brew i

在Mac OS X中使用mtr诊断路由节点问题

这个工具是从阿里云客服那知道的,当时遇到阿里云CDN的一个节点出现丢包问题,用这个工具诊断路由节点问题. 1. 下载地址:http://rudix.org/packages/mtr.html(在园子里下载) 2. 下载后运行mtr-0.85-0.pkg进行安装 3.  cd /usr/local/sbin ,就会看mtr文件. 4. 运行mtr出现提示 -bash: mtr: command not found 解决方法: alias mtr=/usr/local/sbin/mtr 5. 继续运

在 Mac OS 上创建并运行 ASP.NET 5 网站

在 Mac OS 上创建并运行 ASP.NET 5 网站? 提示 本文链接: http://cnblogs.com/qin-nz/p/5035619.html 或 http://blog.qin.nz/aspnet5/aspnet5-first-app-on-mac-os.html 相信用 Mac 作为主力机型的各位是不会玩 ASP.NET 的,所以我真的很怀疑我这篇文章会有人看么? 安装 .NET 版本管理器(DNVM)? 首先,我们需要安装 .NET 版本管理器,其实就是一个脚本文件用来帮助

How To Fix – Mcrypt PHP extension required in Laravel on Mac OS X (No MAMP)

Laravel PHP web framework requires certain libraries to function properly. One of these libraries is the mcrypt and the php-mcrypt (bridge between mcrypt and php). However, there is a good chance that you will run into issues while running Laravel if

如何在Mac OS X 中运行Lua (Running Lua on Mac OS X)

参考文章:1) http://www.oschina.net/question/12_769552) http://rudamoura.com/luaonmacosx.html 最近在为iOS开发游戏,我的开发机是iPhone5.在开发的游戏项目中需要使用Lua语言,所以想在我的苹果MacBook Pro 中安装Lua语言的解释器,以便进行脚本调试.我的Mac OS X的版本是10.8.3.Lua 是一个轻量级的脚本语言,在游戏开发上使用非常多.它是开源的.我们可以下载它的源码进行编译. 到本文