Skip to content

Instantly share code, notes, and snippets.

@ryanorsinger
Created June 18, 2019 19:23
Show Gist options
  • Save ryanorsinger/671b06513e84c5e67ea55be5b1faad8b to your computer and use it in GitHub Desktop.
Save ryanorsinger/671b06513e84c5e67ea55be5b1faad8b to your computer and use it in GitHub Desktop.
Global .gitignore
# Run the following lines in your terminal to add .DS_Store, pycache, ipynb checkpoints, and env.py to the global gitignore file.
echo ".DS_Store" >> ~/.gitignore_global
echo "**/.DS_Store" >> ~/.gitignore_global
echo ".ipynb_checkpoints" >> ~/.gitignore_global
echo "**/.ipynb_checkpoints" >> ~/.gitignore_global
echo "__pycache__" >> ~/.gitignore_global
echo "**/__pycache__" >> ~/.gitignore_global
echo "env.py" >> ~/.gitignore_global
echo "**/env.py" >> ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment