Add all unversioned files to SVN

后端 未结 5 1467
失恋的感觉
失恋的感觉 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 20:05

    The accepted solution

    svn --force add .

    will also add all ignored unversioned files. Most people likely prefer just to add all unversioned but not ignored files.

    To add all unversioned but not ignored files, codefox421 answer is right:

    svn st | grep '^\?' | sed 's/^\? *//' | xargs -I% svn add %

    as svn st does not show ignored files.

提交回复
热议问题