<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Tue, May 3, 2016 at 1:07 PM, Christoph Biedl <span dir="ltr"><<a href="mailto:cbiedl@gmx.de" target="_blank">cbiedl@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace">  + *.git/.git/*<br>  - *.git/</font><br></blockquote><div> </div></div></div><div class="gmail_extra">From the man page near the start of the "INCLUDE/EXCLUDE PATTERN RULES" section:</div><div class="gmail_extra"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><i>Note that, when using the --recursive (-r) option (which is implied by -a), every subcomponent of every path is visited from the top down, so include/exclude patterns get applied recursively to each subcomponent’s full name (e.g. to include "/foo/bar/baz" the subcomponents "/foo" and "/foo/bar" must not be excluded). The exclude patterns actually short-circuit the directory traversal stage when rsync finds the files to send.</i></blockquote><div><br></div><div>Thus, your latter exclude prevents the first include from ever seeing any data that it could match. You'd need to use something more like this:</div><div><font face="monospace, monospace"><br></font></div><div><span style="font-family:monospace,monospace">+ *.git/.git/</span><br></div><div><font face="monospace, monospace">- *.git/*</font></div><div><font face="monospace, monospace"><br></font></div><div><br clear="all"><div><div class="gmail_signature">..wayne..</div></div>
</div></div>