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.

  • Git: How to connect SourceTree to my Git-Enabled-Web-Hosting via SSH?
  • Is any way to git shallow clone in SourceTree
  • Where is git mv in SourceTree?
  • Need to grab a bit of code from a previous commit — Sourcetree
  • How to interactively (visually) resolve conflicts in SourceTree / git
  • Unmerge the branch from Git with sourcetree
  • How can I get SourceTree to add the files to the repository-specific .gitignore?

  • Changing git commit message after push (given that no one pulled from remote)
  • Git merge conflicts when no changes done
  • Ignoring a file: gitignore does not do what I want
  • All files unstaged in Ubuntu, but not Windows
  • trying to understand why git pull worked and git fetch did not
  • How to use multiple SSL Keys when using two different git servers?
  • 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.