rewrite gitignore file