SVN checkout ignore folder

前端 未结 10 1801
孤城傲影
孤城傲影 2020-11-30 17:52

Can I ignore a folder on svn checkout? I need to ignore DOCs folder on checkout at my build server.

edit: Ignore externals isn\'t an option. I have

10条回答
  •  佛祖请我去吃肉
    2020-11-30 18:23

    Yes you can using SVN 1.6. You will need to do a checkout first then mark the folder for exclusion then delete the unwanted folder.

    svn checkout http://www.example.com/project
    cd project
    svn update --set-depth=exclude docs
    rm -fr docs
    

    From now on any updates to the working copy won't repopulate the docs folder.

    See http://blogs.collab.net/subversion/2009/03/sparse-directories-now-with-exclusion/ and http://subversion.apache.org/docs/release-notes/1.6.html#sparse-directory-exclusion for more details.

    Tom

提交回复
热议问题