I know it's a basic question but I've tried every combination of propedit propset, etc.
In an existing project, there's a file (let's call it 'error.log) I want to ignore for all future commits. What's the command-line syntax to do so?
I know it's a basic question but I've tried every combination of propedit propset, etc.
In an existing project, there's a file (let's call it 'error.log) I want to ignore for all future commits. What's the command-line syntax to do so?
First you must ensure the file is not already in your repository.
If it is, you need to delete it from the repository and commit that change before you move on.
Then it is as simple as adding the property:
svn propset svn:ignore . "..."
If you've already ignored other files, you must set the property to contain the old list + error.log, otherwise you can just do:
svn propset svn:ignore . "error.log"
Then you commit that so that other working copies will get the same property and you should be all set.
Also, if you're on Windows, and using [TortoiseSVN][1], it's as simple as doing this:
Note again, you must ensure the file is not in your repository when you do this, so if it is, delete it before you add the ignore setting.
Go to the directory of the error-log
file and type
svn propedit svn:ignore .
An editor will open and you need to add a line with the file name error.log
. Save and exit the editor. Commit the changes.