Add all unversioned files to Subversion using one Linux command

前端 未结 11 1753
滥情空心
滥情空心 2020-12-23 09:24

Sometimes I include many files in different directories in my project. For now I am adding all files one by one to my project before commit. Is there any Linux terminal comm

11条回答
  •  南笙
    南笙 (楼主)
    2020-12-23 09:34

    An approach using a Perl one-liner to add all files shown with a question mark by "svn st" would be:

    svn st | perl -ne 'print "$1\n" if /^\?\s+(.*)/' | xargs svn add
    

    This should also work with space characters in file names.

提交回复
热议问题