如何使用svn add命令将所有文件和目录添加到svn?


3

我想使用这个已经递归的简单命令:

svn add *

问题是shell(ash)不会将星号扩展为隐藏文件,即名称以点开头的文件。

Answers:



0

据我所知,无论是bash还是tcsh都没有。简单地用吧svn add * .*


svn: Skipping argument: '.svn' ends in a reserved name svn: warning: '.' is already under version control svn: Path '..' ends in '..', which is unsupported for this operation # svn status ? .test
dash17291

@ dash17291:svn add *在已经是工作副本的目录中,通常会导致SVN抱怨已经添加的项目。当您“手动”尝试再次添加同一文件时也会发生相同的情况。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.