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 to REALLY remove a tag on git / SourceTree
  • Multiple features for one branch - what's the point?
  • Source Tree for Windows doesn't seem to work with valid SSH key
  • How to do git cherry-pick --continue in SourceTree?
  • How do I filter log by folder in SourceTree?
  • Removing/undoing a merge on Sourcetree
  • How can I get SourceTree to add the files to the repository-specific .gitignore?

  • Removed sensitive file from GitHub history, but I can still access it
  • Git Clone Multiple Repository's into one developer repository
  • Continuous Integration using GIT / BitBucket on a GIT controlled Intranet
  • git ignores $GIT_AUTHOR_DATE — is this a bug?
  • How to create development branch from master on GitHub
  • Update git submodules shallowly with the '--depth' option
  • One Solution collect form web for “Sourcetree adding files in global .gitignore, not in repository .gitignore”

    When you choose to ignore a file that is modified etc, SourceTree will bring up the following dialogue:

    Ignore modal dialogue

    Instead of choosing the “global ignore list”, select the “this repository only” option.

    Git Baby is a git and github fan, let's start git clone.