generate better rules for .gitignore