Git Pills – Exclude files from all repositories, a global .gitignore

You probably already know how to ignore certain files while adding to the index; if you are tired to setup always the same .gitignore file for all your repository, this pill is for you.

That’s easy: create a .gitexclude file wherever you want (I had it in my home), and then add it to your config using this command:

The syntax of the file is the same of .gitgnore file; if you want to take a look at mine, please visit my GitHub GitEnvironment project.

Ciao,
Nando :)

Leave a Reply

Your email address will not be published. Required fields are marked *