macos 如何在 OS X 上使用 svn 下载源代码?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2573841/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how do i download source code using svn on OS X?
提问by Moshe
How can I get source code off the internet using SVN? I'm trying to download Oolong game engine for iPhone OS.
如何使用 SVN 从 Internet 获取源代码?我正在尝试为 iPhone 操作系统下载乌龙游戏引擎。
I am on Mac OS X 10.6 with XCode 3.2.2.
我在 Mac OS X 10.6 上使用 XCode 3.2.2。
svn checkout http://oolongengine.googlecode.com/svn/trunk/ oolongengine-read-only
svn checkout http://oolongengine.googlecode.com/svn/trunk/ oolongengine-read-only
is the command I got from the Oolong Google Code page.
是我从乌龙谷歌代码页面得到的命令。
EDIT:
编辑:
I've tried the command in Terminal. I don't know where the code ends up on my machine. I did not get any errors.
我已经在终端中尝试过该命令。我不知道代码在我的机器上的最终位置。我没有收到任何错误。
回答by Chris Blackwell
svn ships with Mac OS X, so all you need to do is open Terminal, navigate to the directory where you want the code, then you can copy and paste that line right in to terminal, hit enter, an voila, the code will be checked out on to your machine.
svn 随 Mac OS X 一起提供,因此您需要做的就是打开终端,导航到您想要代码的目录,然后您可以将该行复制并粘贴到终端中,按 Enter,瞧,代码将是检查到您的机器上。