linux下安装使用svn

本文档详细介绍了在Linux系统中安装和使用Subversion(SVN)的过程,包括通过yum安装,检查安装状态,解决403 Forbidden错误,以及如何添加文件夹,提交更改到远程仓库,并处理常见错误提示。
摘要由CSDN通过智能技术生成

为了方面在linux上管理taocode上的代码文件等,在linux上安装svn如下

svn安装

下载安装subversion

[zzx@localhost 3rdparty]$ sudo yum install -y subversion

查看subversion是否安装好

[zzx@localhost 3rdparty]$ rpm -qa | grep subversion
subversion-1.6.11-15.el6_7.i686

本人自己使用的是taocode,所以这个的链接是taocode的,各人可以有不同。

svn checkout path (path是服务器的目录)

简写:svn co path

[zzx@localhost 3rdparty]$ svn co  http://code.taobao.org/svn/yun-iot/

**********************************

如出现下面错误

Authentication realm: <http://code.taobao.org:80> code.taobao.org
Password for 'zzx':

svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS request for 'http://code.taobao.org/svn/yun-iot'

是因为当你的虚拟机和SVN的ID不一致,解决方法: svn co --username=SVN的ID path

*********************************

[zzx@localhost 3rdparty]$ svn co --username=xiongzhizhu http://code.taobao.org/svn/yun-iot      //svn的ID是自己taocode注册的用户名

Authentication realm: <http://code.taobao.org:80> code.taobao.org
Password for 'xiongzhizhu':
-----------------------------------------------------------------------
ATTENTION!  Your password for authentication realm:

   <http://code.taobao.org:80> code.taobao.org

can only be stored to disk unencrypted!  You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible.  See the documentation for details.

You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/h

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值