I do this if I forget to add .DS_Store to .gitignore when working with git repos: find . -name .*DS_Store -delete
git config --global core.excludesfile ~/.config/git/ignore
cat >> ~/.config/git/ignore
.DS_Store
.AppleDouble
.LSOverride
.AppleDB
.AppleDesktop
.apdisk
.fseventsd
.Trashes
.Spotlight-V100
._*
Icon
Network Trash Folder
Temporary Items
Iconmkdir -p ~/.config/git
I can't think of a good reason to commit hidden files.
Surely you don't cruise through to the end of a day without pushing at least once before lunch? :(
Anyways, besides the plug for hg, my point was that I would expect pushing could be a once-a-day kind of thing, whereas commits should be every five minutes. :-)