SVN+SSH

本文将指导您如何通过SSH访问服务器并配置Subversion版本控制系统,包括生成密钥、授权公钥、安装Subversion及创建仓库等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Setup SSH access
Go to the cPanel “Manage SSH Keys”, click the “Generate Key” button to generate a pair of keys.
Go back in the “Manage SSH Keys”, Authorization the public key you just generated and download the private key to your local machine.
Let’s say, we want to name the private key file “.id_rsa”. So, copy the download file to “~/.ssh/.id_rsa” and set correct permission on it.
1 chmod 400 ~/.ssh/.id_rsa

Connect from the Terminal to verify it works.
1 ssh username@www.iosplace.com -i .ssh/.id_rsa

Install subversion on the server

I’m using InMotionHosting. Their business hosting plan on edge server has subversion installed. Another so called “developer friendly” hosting company that I know is A2 hosting. BlueHost, MonsterHost and GoDaddy are few that I know people have success installed subversion on them.

Create subversion repositories

Suppose I want to layout my repositories like this: ~/svn/repo1/project1, ~/svn/repo1/project2, ~/svn/repo2/project3, …, This is what I do after ssh logon to my server in Terminal:

12 mkdir svn svnadmin create svn/repo1

Setup Xcode

Select SCM->Configure SCM Repositories…, go to the SSH tab. You should see the private key file is listed there. If it’s not authorized, type the passphase (the one you typed when generate the key pair) to authorize it.
In the Repositories tab, you should configure it similar to this:
[img]http://dl.iteye.com/upload/attachment/0064/6107/0a663b4b-10e0-3837-8af8-733c304fc149.png[/img]

3.If you’re not sure about the path, type pwd in the Terminal which should print out your path.
4.Select SCM->Repositories, and select the repository you just configured, the ‘project1′ directory should be listed there. Now you can import your source files into the repository.
5.To obtain a working copy, select Checkout in the above Repositories dialog.
6.Now open the Xcode project file you’ve checked out. If it’s SCM not configured, select menu Project->Edit Project Settings…, in the General tab, click “Configure Roots & SCM…”.

[img]http://dl.iteye.com/upload/attachment/0064/6109/96e7ff72-4459-316f-896e-799058e6b81b.png[/img]

[url]【http://blog.iosplace.com/?p=4】[/url]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值