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

Git is failing to Stage, or commit with SourceTree in a Windows network environment

Hello, I'm using Atlassian SourceTree to look after some git repositories, however when I create a new one and try to add new files for the first time (not sure if it's essential info for getting help), but this is the error message I get when I try to commit a file:

git -c diff.mnemonicprefix=false -c core.quotepath=false add -f -- app/file.txt
error: unable to create temporary file: File exists
error: app/file.txt: failed to insert into database
error: unable to index file app/file.txt

fatal: adding files failed

Completed with errors, see above.

It's a little annoying, because it's not storing anything.

I'm doing this at work under a Novell/Windows environment, so it could be a permission error, but I figured if I'm browsing the network and logged in as me, surely the SourceTree internal git program would store and look at the network as to who it's logged in as.

It works great if I'm using a source directory locally, but it doesn't work on a shared path.

Are there any git/SourceTree boffins out there experienced this problem?

1 answer

Looks like it can't be done. So instead I'm working on a local git repository, and copying the entire path. Not the best method. But it'll at least let others still see the files (who don't have git access)

What do you mean with "shared path", a network drive? Also "git init" seems to have worked prior, so the rest should work as well.

As SourceTree just calls an embedded cmd git you may try this out directly on the cmd or just try to use TortoiseGit.

There is also a similar questions. To make it short: try to configure SourceTree to use the "normal" downloaded git instead the embedded one.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Atlassian Community Events

Hello from city #68 on the road!

Hello from my sixty-eighth city in a long-term RV trip I started in 2015!  I've traveled all over the US staying in different cities and states for just a few days up to many months. This week I...

44 views 1 7
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