SVN just won't ignore a folder, despite propset svn:ignore

后端 未结 3 886
独厮守ぢ
独厮守ぢ 2021-02-13 17:48

Take folder files, inside an SVN working copy, running in Linux. The folder was set to be ignored, with the commands:

  • svn propset svn:ignore * \'fil
3条回答
  •  南笙
    南笙 (楼主)
    2021-02-13 18:46

    If you want to ignore a directory files, you need to svn propset svn:ignore files on its PARENT directory, not the directory itself.

    e.g.

    # your directory structure is this:
    # workingCopy
    # workingCopy/parent
    # workingCopy/parent/subfolder
    # to ignore subfolder do this:
    svn propset svn:ignore subfolder workingCopy/parent
    

    Edit

    If there are files within this folder that are under version control, Subversion will NOT ignore them even if the folder is ignored. You will need to remove them from version control (i.e. svn delete) and then they will be ignored.

    A file being under version control takes precedence over any ignore lists that may include it.

提交回复
热议问题