The “.git” folder is added to the “folder_exclude_patterns” in “Preferences.sublime-settings – Default” and I have also tried adding it to “Preferences.sublime-settings – User”, but I keep seeing the folder in my sidebar and it is still included in searches. Restarting Sublime does not help.
In the “-- User” settings I also have “node_modules” in the “folder_exclude_patterns” and this does work.