--hard might be an overkill, you can just undo git add .gitignore