We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

jachin on 02/26/08


Tagged

Shell osx git DSStore VersionControl


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

basicmagic


removing .DS_Store files from a git checkout


Published in: Bash 


This command will not delete the .DS_Store files from the file system, just take them out of version control.

Before doing this it would be a good idea to setup the repository to ignore .DS_Store files.

  1. find . -depth -name '.DS_Store' -exec git-rm --cached '{}' \; -print

Report this snippet 

You need to login to post a comment.