I’m wondering about what i suppose would be a best practice for when to commit .gitignore. I use Rails and my .gitignore is generated with my app and I usually add a couple of dev environment specific lines…. nothing unusual. However I can’t find anything anywhere on when I should commit .gitignore.
It makes sense to me to commit .gitignore before adding/committing any other files; Setting up the ignore file, then committing everything and deleting certain ignore files/folders just doesn’t seem very DRY.