svn多人编辑一个文档_【SVN】自动添加多个文件

// svn status

HuangChao-MacBookPro:stockemotion hchao$ svn status

M       code/app/Http/Controllers/AccountController.php

M       code/app/Http/Controllers/DownloadController.php

M       code/app/Http/Controllers/PickController.php

M       code/app/Http/Controllers/ShopController.php

M       code/app/Http/Controllers/StockController.php

M       code/app/Http/Controllers/UserController.php

M       code/app/Http/Middleware/AffordMiddleware.php

M       code/app/Http/routes.php

M       code/resources/download/StockTest.apk

?       code/resources/views/shop/buy.blade.php

M       code/resources/views/shop/index.blade.php

M       code/resources/views/stock/module.blade.php

M       code/resources/views/user/resetPassword.blade.php

?       code/storage/logs/alipay/2015-08-16.log

?       code/storage/logs/alipay/2015-08-17.log

?       code/storage/logs/alipay/2015-08-18.log

?       code/storage/logs/alipay/2015-08-19.log

M       code/storage/logs/laravel.log

?       code/storage/logs/weixin/2015-08-11.log

?       code/storage/logs/weixin/2015-08-12.log

?       code/storage/logs/weixin/2015-08-13.log

?       code/storage/logs/weixin/2015-08-14.log

?       code/storage/logs/weixin/2015-08-15.log

?       code/storage/logs/weixin/2015-08-16.log

?       code/storage/logs/weixin/2015-08-17.log

?       code/storage/logs/weixin/2015-08-18.log

?       code/storage/logs/weixin/2015-08-19.log

HuangChao-MacBookPro:stockemotion hchao$

// svn commit

HuangChao-MacBookPro:stockemotion hchao$ svn commit -m "version@20150818" .

Sending        code/app/Http/Controllers/AccountController.php

Sending        code/app/Http/Controllers/DownloadController.php

Sending        code/app/Http/Controllers/PickController.php

Sending        code/app/Http/Controllers/ShopController.php

Sending        code/app/Http/Controllers/StockController.php

Sending        code/app/Http/Controllers/UserController.php

Sending        code/app/Http/Middleware/AffordMiddleware.php

Sending        code/app/Http/routes.php

Sending        code/resources/download/StockTest.apk

Sending        code/resources/views/shop/index.blade.php

Sending        code/resources/views/stock/module.blade.php

Sending        code/resources/views/user/resetPassword.blade.php

Sending        code/storage/logs/laravel.log

Transmitting file data .............

Committed revision 20.

HuangChao-MacBookPro:stockemotion hchao$

// svn status

HuangChao-MacBookPro:stockemotion hchao$ svn status

?       code/resources/views/shop/buy.blade.php

?       code/storage/logs/alipay/2015-08-16.log

?       code/storage/logs/alipay/2015-08-17.log

?       code/storage/logs/alipay/2015-08-18.log

?       code/storage/logs/alipay/2015-08-19.log

?       code/storage/logs/weixin/2015-08-11.log

?       code/storage/logs/weixin/2015-08-12.log

?       code/storage/logs/weixin/2015-08-13.log

?       code/storage/logs/weixin/2015-08-14.log

?       code/storage/logs/weixin/2015-08-15.log

?       code/storage/logs/weixin/2015-08-16.log

?       code/storage/logs/weixin/2015-08-17.log

?       code/storage/logs/weixin/2015-08-18.log

?       code/storage/logs/weixin/2015-08-19.log

HuangChao-MacBookPro:stockemotion hchao$

// 没有加入的文件,怎么办? 一个一个添加????

// awk print

HuangChao-MacBookPro:stockemotion hchao$ svn status | awk '{if ($1 == "?") {print $2}}'

code/resources/views/shop/buy.blade.php

code/storage/logs/alipay/2015-08-16.log

code/storage/logs/alipay/2015-08-17.log

code/storage/logs/alipay/2015-08-18.log

code/storage/logs/alipay/2015-08-19.log

code/storage/logs/weixin/2015-08-11.log

code/storage/logs/weixin/2015-08-12.log

code/storage/logs/weixin/2015-08-13.log

code/storage/logs/weixin/2015-08-14.log

code/storage/logs/weixin/2015-08-15.log

code/storage/logs/weixin/2015-08-16.log

code/storage/logs/weixin/2015-08-17.log

code/storage/logs/weixin/2015-08-18.log

code/storage/logs/weixin/2015-08-19.log

HuangChao-MacBookPro:stockemotion hchao$

// xargs

HuangChao-MacBookPro:stockemotion hchao$ svn status | awk '{if ($1 == "?") {print $2}}' | xargs svn add

A         code/resources/views/shop/buy.blade.php

A         code/storage/logs/alipay/2015-08-16.log

A         code/storage/logs/alipay/2015-08-17.log

A         code/storage/logs/alipay/2015-08-18.log

A         code/storage/logs/alipay/2015-08-19.log

A         code/storage/logs/weixin/2015-08-11.log

A         code/storage/logs/weixin/2015-08-12.log

A         code/storage/logs/weixin/2015-08-13.log

A         code/storage/logs/weixin/2015-08-14.log

A         code/storage/logs/weixin/2015-08-15.log

A         code/storage/logs/weixin/2015-08-16.log

A         code/storage/logs/weixin/2015-08-17.log

A         code/storage/logs/weixin/2015-08-18.log

A         code/storage/logs/weixin/2015-08-19.log

HuangChao-MacBookPro:stockemotion hchao$

// svn commit

HuangChao-MacBookPro:stockemotion hchao$ svn commit -m "version@20150818" .

Adding         code/resources/views/shop/buy.blade.php

Adding         code/storage/logs/alipay/2015-08-16.log

Adding         code/storage/logs/alipay/2015-08-17.log

Adding         code/storage/logs/alipay/2015-08-18.log

Adding         code/storage/logs/alipay/2015-08-19.log

Adding         code/storage/logs/weixin/2015-08-11.log

Adding         code/storage/logs/weixin/2015-08-12.log

Adding         code/storage/logs/weixin/2015-08-13.log

Adding         code/storage/logs/weixin/2015-08-14.log

Adding         code/storage/logs/weixin/2015-08-15.log

Adding         code/storage/logs/weixin/2015-08-16.log

Adding         code/storage/logs/weixin/2015-08-17.log

Adding         code/storage/logs/weixin/2015-08-18.log

Adding         code/storage/logs/weixin/2015-08-19.log

Transmitting file data ..............

Committed revision 21.

HuangChao-MacBookPro:stockemotion hchao$

// 大招

$ svn status | awk '{if ($1 == "?") {print $2}}' | xargs svn add

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值