Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

After update to "Fatal: cannot use . as an exclude file"


I keep getting this error when opening any repository after updating to the newest version of Sourcetree (on Win 10): 

2018-06-03 16_59_42-Sourcetree.png

I am even getting the error after cloning an empty Bitbucket repository. It's exactly the same error for every repository I open. I can close the error message but not push or pull any changes with a similar error message: 

warning: unable to access '.': Permission denied
fatal: cannot use . as an exclude file

Can somebody please help with this? 



I tried uninstalling and deleting all preferences, then reinstalling the older version (which funny enough is the newest version you can download from But the error still appears. 

1 answer

1 accepted

1 vote
Answer accepted

Fixed: I updated Git, as suggested to v2.17 (as was required with the new Sourcetree version), but forgot to point Sourcetree to the system Git installation. So I guess it was caused by an old Git version...

I had the same problem today. 

The actual solution is to blank out the field Global Ignore List or select a .gitignore that is relevant to your use.

You would have had a rogue . in this field.

Menu: Tools - Options and click the Git tab.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,263 views 5 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you