add_to_gitignore function

Add to the .gitignore file