How do I ignore a directory with SVN?

前端 未结 23 2524
无人共我
无人共我 2020-11-22 16:42

I just started using SVN, and I have a cache directory that I don\'t need under source control. How can I ignore the whole directory/folder with SVN?

I am using Vers

23条回答
  •  轮回少年
    2020-11-22 17:14

    Set the svn:ignore property on the parent directory:

    $ cd parentdir
    $ svn ps svn:ignore . 'cachedir'
    

    This will overwrite any current value of svn:ignore. You an edit the value with:

    $ svn pe svn:ignore .
    

    Which will open your editor. You can add multiple patterns, one per line.

    You can view the current value with:

    $ svn pg svn:ignore .
    

    If you are using a GUI there should be a menu option to do this.

提交回复
热议问题