[Subversion]Mac 上 svn使用

之前试用的Versions 过期了 下载svnX发现它很精简很好用

后来直接用了Xcode发现Xcode一开始直接在Source Control 里面Check Out 发现只有填写连接的地方 但是配置问题地方填写 都是直接通过然后显示一个文件夹名字

但里面并没有内容 所以就在repository地址后面加了一些参数(直接加一个?k也可以)就会直接跳出账号密码的配置界面 

 

下面是可能碰到的问题的解决方法

Error validating server certificate for… 按t或者p依旧没有解决

解决办法 

(1) 用命令打开servers配置文件:open  ~/.subversion/servers 

  (2)   在servers配置文件的末尾添加:

          ssl-ignore-host-mismatch = true
          ssl-ignore-unknown-ca = true
          ssl-ignore-invalid-date = true 

 

下面总结下Terminal直接试用SVN

checkout

终端输入

svn checkout path(地址比如https://svn.duapp.com/123123) --username=用户名 --password=密码 localRepositoryPath (本地地址/Users/你的mac的当前用户名如果是默认的用户名是apple/其他文件夹)

上面的中文都是注释  空格都要保留

即使是中文的系统自带文件名 这里也要使用英文的比如 文稿要用Documents

commit

终端输入

cd path(直接checkout过来的存储文件夹)

svn commit -m(或者-f等参数看下面有附带 需要带上日志信息) "日志信息"

 

 

 

 

 

commit (ci): Send changes from your working copy to the repository.

usage: commit [PATH...]

 

  A log message must be provided, but it can be empty.  If it is not

  given by a --message or --file option, an editor will be started.

  If any targets are (or contain) locked items, those will be

  unlocked after a successful commit.

 

Valid options:

  -q [--quiet]             : print nothing, or only summary information

  -N [--non-recursive]     : obsolete; try --depth=files or --depth=immediates

  --depth ARG              : limit operation by depth ARG ('empty', 'files',

                             'immediates', or 'infinity')

  --targets ARG            : pass contents of file ARG as additional args

  --no-unlock              : don't unlock the targets

  -m [--message] ARG       : specify log message ARG

  -F [--file] ARG          : read log message from file ARG

  --force-log              : force validity of log message source

  --editor-cmd ARG         : use ARG as external editor

  --encoding ARG           : treat value as being in charset encoding ARG

  --with-revprop ARG       : set revision property ARG in new revision

                             using the name[=value] format

  --changelist [--cl] ARG  : operate only on members of changelist ARG

  --keep-changelists       : don't delete changelists after commit

 

Global options:

  --username ARG           : specify a username ARG

  --password ARG           : specify a password ARG

  --no-auth-cache          : do not cache authentication tokens

  --non-interactive        : do no interactive prompting

  --trust-server-cert      : accept SSL server certificates from unknown

                             certificate authorities without prompting (but only

                             with '--non-interactive')

 

posted @ 2015-02-25 21:37  baaingSheep  阅读(744)  评论(0编辑  收藏  举报