Refactor and reindex the .gitignore files