Well you still ignore those things, just not with a committed .gitignore. Now your repo and your gitignore are pristine