skip to Main Content

How to ignore files only on my machine?

If we want to ignore files (they will not suggested to be added as staged) we usually use .gitignore in root folder of our repository. There is one problem this file is shared between all contributers of that repository.

What to do when we want add filter only on our machine? For example only we use somekind tool or extension which generates some sort of files.

We have two options.


Set Notepad++ as default Git editor

A default editor for Git in Windows system is notepad, which we can all agree that editor is not the greatest editor in the world.

We can change it to Notepad++. Let’s assume that Notepad++ was installed in default path C:\Program Files (x86)\Notepad++\. Then the command to set Notepad++ as default git will look like this:

git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

Back To Top