Sublime Forum

What 'use gitignore' is for?

#1

I can’t find any documentation about this:

image

0 Likes

#2

It controls whether gitignored files are ignored.

0 Likes

#3

Thanks, but for people who don’t know what gitignore means, this doesn’t explain much.
That’s why I think it would be important for this to be better explained in the official documentation.

0 Likes

#4

I guess the presumption would be that for the button to make any sense to you and actually perform a function, you would be working inside of files tracked by git, and as such you should know what .gitignore does by default.

0 Likes

#5

True. But the button always show whether you work with git or not. So people who don’t use git may confuse even if the button has no function.

0 Likes

#6

Find-in-files can search all paths on your system and git repositories can be deep inside those paths. Showing and hiding the button based on the contents of the “Where” field is much worse behavior.

1 Like

#7

if you back up your folders on Github, gitignore tells the backup what not to send to the repository

0 Likes