Created
June 18, 2019 19:23
-
-
Save ryanorsinger/671b06513e84c5e67ea55be5b1faad8b to your computer and use it in GitHub Desktop.
Global .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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