How do I ignore a directory with SVN?

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

    After losing a lot of time looking for how to do this simple activity, I decided to post it was not hard to find a decent explanation.

    First let the sample structure

    $ svn st ? project/trunk/target ? project/trunk/myfile.x

    1 – first configure the editor,in mycase vim export SVN_EDITOR=vim

    2 – “svn propedit svn:ignore project/trunk/” will open a new file and you can add your files and subdirectory in us case type “target” save and close file and works

    $ svn st ? project/trunk/myfile.x

    thanks.

提交回复
热议问题