How to ignore .*o*.cmd on a local linux repository?

601 views Asked by At

I would like to ignore all files like .sddr09.o.cmd or .karma.o.cmd etc onto a kernel svn repository.

I try somme commands like :

svn propset svn:ignore '*.cmd' . --recursive

or

svn propset svn:ignore '*.o.cmd' . --recursive

or

svn propset svn:ignore '.*.o.cmd' . --recursive

but no one success to prevent from commit these files.

So I try to use the dontdiff file located in linux/Documentation/dontdiff appending

*.cmd
*.o.cmd
.*.o.cmd

at the end of the file

and I use the following command line :

svn propset svn:ignore -R -F Documentation/dontdiff .

but no more success.

Any Idea ?

1

There are 1 answers

0
Woodrow Barlow On

You mention in the comments that you've already added these files, so the first step is to undo that. Presumably you used svn add to add the files, so you'll need to use the inverse of that: svn delete.

svn delete --keep-local path/to/file

The --keep-local will tell SVN not to undo any modifications you've made. If you do want to reset the files to their original state (or delete them if they didn't exist before), you can omit the option.

You can confirm this with svn status. The files in question should not have anything in the first column.

After that, you should be able to run the svn ignore commands that you included in your question.