Ignore .git folders during deployment

I extracted my _posts to a git submodule. Because of the .git folder in the _posts directory, the deployment (rsync) was not possible.
When ignoring .git folders during the deployment, it works fine (for me).