Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Sourcetree error fatal: Unable to write new index file

itsricky April 4, 2013

Hi there

I have recently downloaded and started using Sourcetree - love it.

One repo and set of pushes to my SamG bucket was fine, great.

Now I am trying to add files to a new commit using the 'everguide-newsletter-creator' repo, and keep getting this error:

fatal: Unable to write new index file

Why is this happening on my mac? I have ample disk and memory space available?

Thanks.

2 answers

1 accepted

0 votes
Answer accepted
stevestreeting
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.
April 4, 2013

This is usually a permissions problem or a file locking problem. I'd check that you have full access to the entire folder and all of its subdirs (especially the .git hidden folder), and that nothing else could be holding persistent locks on the file system somehow (ultimately a reboot should make sure this isn't the case). Otherwise, there are a few ideas here: http://stackoverflow.com/questions/3813962/git-problem-fatal-unable-to-write-new-index-file

1 vote
itsricky April 21, 2013

HI Steven - thanks for this.

Your're right - the files were being stored on a Mac Mini Lion Server - thus SourceTree was unable to reset the owner/group permissions on the files, as I've seen it do locally on my mac.

So - hopefully a feature for the future, but at this time I just switched the Repo over to drop box, and that allowed me to alter the permissions.

Would have saved hours had the command line errors been a little more descriptive!

Not your fault thought :)

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events