Skip to content

Configure global gitignore

To configure global gitignore file:

  1. Create gitignore file in home directory

    touch ~/.gitignore_global
    
  2. Set global gitignore file

    git config --global core.excludesfile ~/.gitignore_global
    
  3. Update gitignore file

    .DS_Store
    

GitIgnore Reference - https://git-scm.com/docs/gitignore

Back to top