javalinuxspringsvnmaven

How to ignore directories/files in Subversion?


How to setup my Subversion, so it ignores target files generated by Maven on Linux? I don't want to commit them into SVN.

How do I do this on Linux and MacOS command line?


Solution

  • To ignore files in subversion you want to set the svn:ignore property. You can see more here http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.ignore.html about half way down.

    To ignore the target folder from your project folder run

    svn propset svn:ignore target .
    

    Alternatively to edit a list of ignored files folders run

    svn propedit svn:ignore .