.DS_Store files are hidden files created in every directory in Mac OS X. They contain certain attributes and metadata about the directory in which they reside. Sometimes they can inadvertently end up in commits, which is quite annoying! Here’s a quick tip to remove all
.DS_Store files from a directory.
Furthermore, you can set this command as an alias and add it to your
.bash_profile. If you do, just remember to restart your bash shell with
exec -l bash.