I have a situation where some files that were previously checked into Git now need to be ignored. To ignore them I added the files to ".gitignore" and did the foll