How do I ignore a directory with SVN?

前端 未结 23 2526
无人共我
无人共我 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:15

    To expand slightly, if you're doing this with the svn command-line tool, you want to type:

    svn propedit svn:ignore path/to/dir
    

    which will open your text-editor of choice, then type '*' to ignore everything inside it, and save+quit - this will include the directory itself in svn, but ignore all the files inside it, to ignore the directory, use the path of the parent, and then type the name of the directory in the file. After saving, run an update ('svn up'), and then check in the appropriate path.

提交回复
热议问题