Skip to content

Instantly share code, notes, and snippets.

@edwardstock
Created August 11, 2017 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardstock/6b222d55c1e2f0155bd0f92f5f196fbd to your computer and use it in GitHub Desktop.
Save edwardstock/6b222d55c1e2f0155bd0f92f5f196fbd to your computer and use it in GitHub Desktop.
How to GIT ignore: global ignoring files
# 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