Skip to content

Instantly share code, notes, and snippets.

@cloudcreatordotio
Last active February 4, 2020 22:07
Show Gist options
  • Save cloudcreatordotio/07423035d00403e18ac576026032fc87 to your computer and use it in GitHub Desktop.
Save cloudcreatordotio/07423035d00403e18ac576026032fc87 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment