Created
August 11, 2017 15:46
-
-
Save edwardstock/6b222d55c1e2f0155bd0f92f5f196fbd to your computer and use it in GitHub Desktop.
How to GIT ignore: global ignoring files
This file contains 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
# Command to use global .gitignore file: | |
touch ~/.gitignore | |
echo ".DS_STORE" >> ~/.gitignore | |
echo ".idea/" >> ~/.gitignore | |
git config --global core.excludefile '~/.gitignore' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment