Hello, I am using this script to copy/build files to local server to demo. Its great thank you! Unfortunately, I can not get the EXCLUDE to work correctly, I am trying to exclude hidden files, particularly .git directory. At the moment it is transferring (using rsync) all files in the .git folder, which is not necessary.
My line is:
EXCLUDE: ^(./)?., .git/*
Any advice?
Thanks