Write permanent rules to the .gitignore file.

Signed-off-by: Jerome Doby <xaerodegreaz@gmail.com>