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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

fatal: error when closing sha1 file: Permission denied

I am attempting to create a local git repository using a mounted linux drive (it's a Raspberry Pi, Depian WHeezy) --> (via SSH port 5522 via ExpandDrive) from my mac using SourceTree (newest version), however when I attempt to make a commit in SourceTree to GitHub I continually receive this error:

fatal: error when closing sha1 file: Permission denied

I am not exactly sure how to fix this.

Localy on SSH login to my Raspberry all Git commands work fine. push commit clone and so on ...

Another Raspberry Pi in my local network has only FTP without any SSH logins. There SourceTree works very very well.

Any idea? Hope someone can help.

Thanks Andy

3 answers

nobody any idea ?

You have some very confusing usage of the word "local".

So, first of all, you are trying to simulate a local git repository by mounting remote storage on your local machine (the one running sourcetree).

Secondly, SourceTree throws an error message when you commit.

Thirdly, you are able to commit successfully "Localy on SSH login". I am assuming this means you SSH to the Raspberry machine (which is not local), and run git commands on it (so "local" is now relative to the Raspberry) with no errors.

Have you tried running command line git commands on your local machine (the one with SourceTree)?

Hey Andreas,

That error in specific has many-an-answer on the interwebs - first thing that pulled up on Google: http://stackoverflow.com/questions/685319/git-pull-error-unable-to-create-temporary-sha1-filename

Seems like the contents of your repository might not have the correct file permissions for Git to work with it.

Cheers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in DevOps

Step up your DevOps game webinar Q&A series - Questions answered!

  On October 21st, 2020 we hosted a webinar titled,   Step Up You DevOps Game with 4 Key Integrations for Jira and Bitbucket. We had a great showing and high engagement, but that meant th...

117 views 0 1
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