Ignore a folder during SVN updates

前端 未结 5 969
轻奢々
轻奢々 2021-01-30 16:41

If I svn:ignore a really big folder will it improve performance during SVN updates?

I have this really massive (>600MB) folder in my project. The files in this folder sh

5条回答
  •  孤街浪徒
    2021-01-30 17:39

    The svn:ignore is only for files that are not already in the Subversion repository. This folder already is.

    You can use the svn update --set-depth exclude folderName to remove this folder from your working directory:

    $ svn update --set-depth exclude bigFolder  #Removes "bigFolder" from workdir
    D bigFolder
    
    $
    

    Next time you do an update, bigFolder won't show up in your working directory. If you want it back, you'll have to reset the depth:

    $ svn update --set-depth infinity
    U bigFolder
    U bigFolder/File1
    U bigFolder/File2
    ...
    

提交回复
热议问题