Posts Tagged “Tutorial”

How to create a global .gitignore file

Add a global .gitignore

  1. Open the Terminal
  2. Run touch ~/.gitignore_global to create a global .gitignore file in the home directory
  3. Run open ~/.gitignore_global
  4. Add .vscode/ and any other files or directories that you want to ignore and not include in project-specific .gitignore files (don’t forget to save!)
  5. Run git config --global core.excludesfile ~/.gitignore_global

That’s it! Using .gitignore_global will let you customize your editor without having to edit and commit changes to the .gitignore file for every single project.

Read More