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 ex
--cvs-exclude
Short answer
rsync -r --info=progress2 --filter=':- .gitignore' SOURCE DEST/
Parameters meaning:
-r: recursive
-r
--info=...: show progress
--info=...
--filter=...: exclude by the rules listed on the .gitignore file
--filter=...