SVN ignoring hidden files (.project .pydevproject and . files)
I want to ignore some hidden files (like .project and .pydevproject) in SVN. They are already in our trunk at the moment so I don't want to delete them from the trunk since it may cause more problems for the other developers. So what I tried to do is to run:
svn propset svn:ignore .project .
but right after that when I run svn status, it returns:
M .
and if I make changes on .project, it still tracks those changes. I also tried global-ignores in /etc/subversion/config, no luck.
What do you think wou开发者_Python百科ld be the best way to solve this problem?
Thanks.
svn:ignore
works only for the files that haven't been added yet.
Unfortunately you cannot do that in automatic way (at least I don't know any way of doing that).
So all you can do now is:
- Delete files from repository with
svn rm
- Ask developers to store files somewhere before their next
svn up
- They run
svn up
and move the deleted files back
Now .project
is not tracked by svn and will not appear in svn st
精彩评论