In this case I want to ignore the files iOS uses, and in particular this file
.DS_Store
I created a .gitignore file as such
touch .gitignore
and put in a single line
/.DS_Store
I push to a bare repo which has a hook to checkout to a full repo.
The file keeps showing up in my full repo.