Rsync includes a nifty option --cvs-exclude to “ignore files in the same way CVS does”, but CVS has been obsolete for years. Is there any way to make it also exclude files which would be ignored by modern version control systems (Git, Mercurial, Subversion)? For example, I have lots of Maven projects checked out from GitHub. Typically they include a .gitignore listing at least target, the default