svn

1. SVN
1) create a new project :

[code] svn import -m 'new import' trainer http://svn.idapted.com/svn/projects/trainer[/code]
[list]
[*]trainer doesn't need to exsit, svn will create it.
[*]the svn url must be ../svn/..., cann't be ../browser/..
[*]must have -m 'blabla'
[*]After importing data, note that the original tree is not under version control. To start working, you still need to svn checkout a fresh working copy of the tree.
[/list]

2) svn:externals

svn propedit svn:externals vendor/plugins
[add the following line:]
backgroundrb http://svn.devjavu.com/backgroundrb/trunk
[exit editor]

svn ci -m 'updating svn:external svn property for backgroundrb'
svn up

[list]
[*]The folder 'backgroundrb' must [b][color=red]not[/color][/b] exist in vendor/plugins on svn, otherwise it will be locked and you can not fetching external item into 'vendor/plugins/backgroundrb'
[*]An externals definition can only point to directories, not files; The externals definition cannot point to relative paths (paths like ../../skins/myskin)
[*]If you want to commit changes that you've made in one or more of those external working copies, you must run svn commit explicitly on those working copies—committing on the primary working copy will not recurse into any external ones.That is to say, you have to change to directory that is external(e.g. app/models) and run svn commit
[/list]

3) svn:move

svn move -m 'sth' http://svn.idapted.com/svn/src1 http://svn.idapted.com/svn/newfolder/src2

[list]
[*]if src2 exists, then the contents of src1 including src1 will be created under src2, like .../src2/src1/src1children; if src2 doesn't exsit, then it will be ../src2/src1children, it's just like "svn move and rename"
[/list]

4) svn:merge
The way you rollback to an earlier version of your repository is to do a reverse merge.
Here’s the example off the SVN site. It will do a reverse merge, and roll back the commit you made in version 303.
$ svn merge -c -303 http://svn.example.com/repos/calc/trunk

The ‘-c M’ option is equivalent to ‘-r N:M’ where N = M-1.
Using ‘-c -M’ does the reverse: ‘-r M:N’ where N = M-1.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值