cloudcreatordotio
2/4/2020 - 10:00 PM

Ignore all .DS_Store files in Git

Ignore all .DS_Store files in Git

#!/bin/bash

touch ~/.gitignore_global_config
echo ".DS_Store" >> ~/.gitignore_global_config
echo "._.DS_Store" >> ~/.gitignore_global_config
echo "**/.DS_Store" >> ~/.gitignore_global_config
echo "**/._.DS_Store" >> ~/.gitignore_global_config
git config --global core.excludesfile ~/.gitignore_global_config