Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Where does sourcetree store ignore files?

cyber_octopus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 25, 2025

I cannot find the gitignore files anywhere and there is not menu to modify which files are ignored (I want to stop ignoring files under a given folder).

Where does sourcetree store ignore files?

1 answer

0 votes
Anwesha Pan (TCS)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 7, 2025
SourceTree, as a Git client, does not store .gitignore files itself in the root directory of your Git repository. Instead, they must be listed in global .gitignore
  • How can I get SourceTree to add the files to the repository-specific .gitignore?

Easiest way to edit the individual, is right click the file. Click Ignore and select the option to ignore just in this repository then you will see a new file called .gitignore in the list.

If you have accidentally already added them to the list. You can delete them by going to Sourcetree - > Preferences -> Git menu option. 

When you choose to ignore a file that is modified etc, SourceTree will bring up the dialogue. Instead of choosing the "global ignore list", select the "this repository only" option.

For more details you can refer this Atlassian link - gitignore 

I hope this answer your question. 🙂

Thanks,
Anwesha

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events