Try:
+ *.git/
+ *.git/.git/***
- *.git/*
(you probably want to add --prune-empty-dirs)
Also, when debugging filters/excludes use -vv as it will tell you which
pattern is causing it to do what.
Also, there is no point in using -v without --itemize-changes.
On 05/03/2016 04:07 PM, Christoph Biedl
Hello,
Since the very first day I've been using rsync - some 15 years ago -
the filtering rules caused great grieve. Their behaviour is just not
the way I'd expect it be be and as I read the manpage. Usually I end
up with some hand-written recipes, carefully documented,y including all
the gotchas.