views:

1517

answers:

4

I ignored a file in TortoiseSVN by mistake. How do I reverse this and add the file to my repository?

+6  A: 

If you right click on the directory containing the file and select SVN Properties, you should see an svn:ignore property with a list of ignored files. Simply edit that list and remove the rule ignoring your file.

Gabriel Hurley
+12  A: 

Just edit the svn:ignore property (in the subversion tab of the directory properties).

Martin v. Löwis
+10  A: 

The help states

If you want to remove one or more items from the ignore list, right click on those items and select TortoiseSVN → Remove from Ignore List You can also access a folder's svn:ignore property directly. That allows you to specify more general patterns using filename globbing, described in the section below. Read Section 4.17, “Project Settings” for more information on setting properties directly. Please be aware that each ignore pattern has to be placed on a separate line. Separating them by spaces does not work.

See chapter 4.13 of the help for more details.

Frank Bollack
A: 

I usually just add the ignored file with Tortoise and don't bother to remove the entry from the ignore list. so far I had no negative side effect...

Stefan Egli
When the file is ignored, Add no longer shows up as an option in the TortoiseSVN menu
Yaakov Ellis
that is not what I experience. I checked the checkbox for the "add" command in the tortoise svn settings under context menu. this way the "add" command always appears directly in the explorer context menu. maybe this makes a difference?
Stefan Egli