Add all unversioned files to Subversion using one Linux command

前端 未结 11 1740
滥情空心
滥情空心 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:47

    I haven't used SVN. But the following should work.

    svn add foo/bar.file bar/foo.file
    

    This should add file bar.file in the foo directory and foo.file existing in the bar directory.

    And svn add foo should add all files in foo to the server. The "recursive" flag is set by default.

    And to add all files in a directory except for a few (like the files starting/ending with keywords tmp, test, etc.), I don't think there is a cleaner/simpler way to do it, and better write a shell script that does this.

提交回复
热议问题