[meta] Reorganize .gitignore

Split the contents of the file into sections.