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?

Thanks.

2 answers

1 accepted

0 votes
Accepted answer

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

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
Community showcase
Published Oct 23, 2018 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...

847 views 3 2
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