Exclude .git directory

Not excluding .git directory can lead to problems related to submodules