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.

  • Is it possible in SourceTree commit only one “hunk” of changes?
  • IntelliJ Diff Tool in SourceTree
  • Using Source Tree, rebase with conflict, rebase doesn't work after conflict resovled
  • Understanding Git Branches graph view
  • Source Tree and Github not seeing all of my files
  • Stash/branch/working copy confusion
  • How can I get SourceTree to add the files to the repository-specific .gitignore?

  • Homebrew’s `git` not using completion
  • cloning from GitHub on Android using Terminal IDE
  • Git stage and commit with one command
  • Include submodule commit messages with “git log”
  • Shell script to check if specified Git branch exists?
  • Git: how to reverse-merge a commit?
  • 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.