<p>How can I remove those annoying Mac OS X <code>.DS_Store</code> files from a Git repository?</p>

This will work:
```
```
find . -name "*.DS_Store" -type f -exec git-rm {} \;
```
```
It deletes all files whose names end with
```
.DS_Store
```
, including
```
._.DS_Store
```
.