Prepend each added line in .gitignore files with a slash.