minuteware

minute discoveries

Global .gitignore

| Comments

Very useful if you need, for example, to igonre the .idea directory in all your projects and not add it to each project’s .gitignore explicitly. To do so execute the following:

1
2
git config --global core.excludesfile "~/.gitignore"
echo ".idea" > ~/.gitignore

That’s it. Now the global .gitignore will act just like the project’s .gitignore.

Comments