Git Assessment: .gitignore

If I delete line 2 in .gitignore for all branches, will my problems be corrected? I didn’t realize I had two .DS_Store, one on line 1 and one on line 2. I deleted them and committed the changes on all branches. However, I wanted to post it here and double check before resubmitting. I am on my last attempt.