Cleanup .gitignore

Previously there were a bunch of erroneous entries in .gitignore.
This change removes them.

[#51899913]
Merge 51899913-cleanup-git-ignore to master

[#51899913]