将所有新文件添加到svn存储库
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将所有新文件添加到svn存储库相关的知识,希望对你有一定的参考价值。
Whippy posts on May 15, 2009 at 07:04 To get the 'A' status, the file must already be added. You need to match a '?'. Here is what I use: svn status | grep -v "^.[ ]*..*" | grep "^?" | awk '{print $2}' | xargs svn add svn commit The first grep gets rid of any hidden files (which may be present if you use IDEs such as Zend studio). The second grep makes sure you only get files that are currently of unknown status (ie the new ones). awk grabs the file names. xargs passes the file names as parameters to svn add.
以上是关于将所有新文件添加到svn存储库的主要内容,如果未能解决你的问题,请参考以下文章