简体   繁体   中英

Ignore all folders with a certain name in SVN (subversion), how to?

I am fairly new to Subversion and was wondering how exactly to ignore all folders by a specific name. From what I have read, I think I need to use the svn:ignore function, but I have no clue on how to actually do this. Some places mention a config file.. some say command prompt.

I have my subversion repo set up on a windows 2008 server. I tried to go to command prompt and type svn:ignore name but that didnt work. The tutorial I used to set up my repo (with apache 2.2) had me create an etc folder in c:/. There I have subversion.conf, svn-acl and svn-auth-file.

My subversion.conf file includes this:

<Location /btp>
  DAV svn
  SVNPath C:/Files/Work/Repositories/btp

  AuthType Basic
  AuthName "By The Pixel Repo"
  AuthUserFile c:/etc/svn-auth-file

  Require valid-user

  AuthzSVNAccessFile c:/etc/svn-acl
</Location>

The client I use for my development machines is tortoisesvn.

Im a bit of a noob so any help is appreciated it! Thanks.

请参阅有关properties 的文档svn:ignore是一个属性,因此您可以使用svn propset作为命令来设置它,使用svn propedit对其进行编辑,等等。在该URL的页面中间,您会找到特殊属性的精确文档svn:ignore

In TortoiseSVN the way to do it is

  1. Right-click on working copy
  2. TortoiseSVN --> Properties
  3. New
  4. svn:ignore

The above is for a particular folder that you have checked out. If you want to globally ignore something all the time for your Subversion installation go to

  1. TortoiseSVN Settings
  2. General
  3. Global ignore pattern

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM