Add all unversioned files to SVN

后端 未结 5 1471
失恋的感觉
失恋的感觉 2020-12-12 19:11

I have a working copy that gets automatically committed into SVN overnight using a script.

I use the SVN command line to do so.

After a frustrating battle wi

5条回答
  •  暖寄归人
    2020-12-12 19:46

    You have to call svn add in your script for each unversioned file prior to svn commit—something like this for a shell script:

    for file in `svn st | grep '^\?' | awk '{ print $2; }'`; do
        svn add $file
    done
    

提交回复
热议问题