Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
216 views
in Technique[技术] by (71.8m points)

svnignore - Is there a concept of global ignores in svn?

Is there a way to setup a global list of Ignores for a SVN Repository or for the SVN Client on the PC?

The only reason I'm using tools like Tortoise/Ankh/VisualSVN is because I want to only check in the files I need without all the bin/obj/Resharper stuff.

I'm spoiled by .gitignore and .hgignore which I just copy to a repository and then use git commit -a without having to care about checking in junk.

I know I can manually set it, but that's tedious to do and I think it had to be applied to every new folder that gets created as well.

Using SVN under Windows.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

On an install of Subversion, there is a file in a path such as one of the following:

  • Windows Vista/7/8/8.1/10: C:Users<username>AppDataRoamingSubversionconfig
  • Windows XP: c:Documents and Settings<username>.subversionconfig
  • Unix (Linux, etc), macOS: $HOME/.subversion/config

that contains a global configuration for Subversion. In the [miscellany] section is a global-ignores parameter which you can use to set up globally ignored filename patterns.

The Runtime Configuration Area section of the Subversion book has more information, including how to set up such global configuration parameters in the registry if you need to.

Typical examples:

[miscellany]
global-ignores = *.o *.so *.so.[0-9]* .DS_Store [Tt]humbs.db

or perhaps if you are in a transition phase to using Git:

[miscellany]
global-ignores = .git

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...