Sourcetree error fatal: Unable to write new index file

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?


2 answers

1 accepted

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:

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 :)


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

649 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you