Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN ignoring a '.a' file

I am trying to add a '.a' file in my XCode project but it is getting ignored by SVN and so I am not able to add it in the repository. Any clue what could be the reason?

like image 592
Abhinav Avatar asked Jun 28 '12 22:06

Abhinav


People also ask

How do I ignore a file in svn?

You can ignore a file or directory like . gitignore. Just create a text file of list of directories/files you want to ignore and run the code below: svn propset svn:ignore -F ignorelist.

How do I ignore bin and obj folder in svn?

The text box “Global ignore pattern” defines what patterns you want to exclude; in my case I wanted to remove bin and obj folders, and ReSharper related files, which typically contain _ReSharper, so I added bin obj _ReSharper to the list of patterns. Et voila!

How do I ignore target folder in svn?

To ignore files in subversion you want to set the svn:ignore property. You can see more here http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html about half way down. svn propset svn:ignore target . svn propedit svn:ignore .


2 Answers

Yeah you will have to do it manually. Just navigate to it in a console and perform a svn add file_name.a and it should work.

like image 119
rooster117 Avatar answered Oct 16 '22 19:10

rooster117


SVN has a global ignore list. By default, it includes masks for most popular types of generated files. .a is one of those.

The ignore list is in the SVN config file, under miscellany/global-ignores. The config file is at ~/.subversion/config. It's not visible in Finder by default.

like image 22
Seva Alekseyev Avatar answered Oct 16 '22 19:10

Seva Alekseyev