Svn ignore files not working

I am fighting svn at the moment.

My situation is simple: I have a working copy, call this folder wc. In my working copy, I want to place many folders, but I want some of them, and some of the files inside them not to be added (ignored).

I tried using propseton .to ignore a single file (test.js), but here is the problem:

  • When I use svn add ., nothing is added.
  • When I use svn add *, everything is added. It is proset svn:ignoreuseless as useless (although I received a message that the alert was set).
  • I created a folder mainand tried to put everything inside, launched it and executed two commands: the same result.
  • I also tried to execute the version of the folder and request it, and then try to add subfolders, I get the same problem.

    • Edit: I tried svn propset svn:ignore "*lolo*" main, and then svn add --force main, it works halfway, as it is main/loloignored, main/totololototoignored, but main/baba/lolonot ignored.
+4
source share
1 answer

Try the following:

$ svn propedit svn:ignore .

This will open your editor. Write a list of files and directories that you want to ignore. Save and close the editor.

Then commit the changes:

$ svn ci -m "ignoring some file" .

See also:

0
source

All Articles