Sourcetree adding files in global .gitignore, not in repository .gitignore

I am using SourceTree for my GIT repositories.

Today I need to ignore some files; when I added these files to ignore list from SourceTree’s “Ignore file” menu and check local .gitignore file, the ignored files are not listed there. Instead these are listed in the global .gitignore.

How can I get SourceTree to add the files to the repository-specific .gitignore?

Leave a Comment