Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to use this simple command, which is already recursive:

svn add *

The problem is that the shell (ash) does not expand the asterisk to hidden files, i.e. files whose name begin with a dot.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

AFAIK, you just can to use:

svn add directory

Every file and subdirectory will be added correctly.

share|improve this answer
add comment

As far as I know, neither bash nor tcsh do that either. Simply use svn add * .* then.

share|improve this answer
    
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 Aug 19 '12 at 15:37
    
@dash17291: svn add * in a directory which already is a working copy usually results in SVN complaining about items already added. Same happens when you "manually" try to add the very same file a second time. –  Shi Aug 19 '12 at 16:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.