The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

SourceTree does not honour Global Ignore List

Stefan Guath
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!
December 2, 2015

I have a ~/.gitignore_global file that contains ".DS_Store", with a correct path in ~/.gitconfig (i.e."[core] excludesfile = /Users/myusername/.gitignore_global") in order to find it. This works just as expected in the terminal, i.e. any .DS_Store are successfully ignored.

But in SourceTree, all .DS_Store files causes "Uncommitted changes". Note that in Preferences -> Git, the path to "Global Ignore List" is correct (i.e. "/Users/myusername/.gitignore_global"), so apparently "excludesfile" has been properly consulted in .gitconfig. But still, the Global Ignore List doesn't seem to be honored. What am I doing wrong?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Stefan Guath
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!
December 3, 2015

When entering "git status" in Terminal I get the response: "On branch Foo Your branch is up-to-date with 'Bar'. nothing to commit, working directory clean" But when starting up SourceTree the .DS_Store files still causes "Uncommitted changes". I finally managed to get rid of it by executing various manual operations on the .DS_Store files, such as 'ignore', 'delete' and some others that I don't remember. It seems to work now, but it was a long and strange way of getting there.

0 votes
Tim Crall
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 Champions.
December 2, 2015

Is there any chance that you accidentally "added" the file before putting it on the ignore? If you go to the command line and do a "git status", what does it report?

TAGS
AUG Leaders

Atlassian Community Events