Not able to push repo using Sourcetree 'cannot spawn: ...\TortoisePlink.exe'

Dear Community,

I want to push a repo to a gitlab repo.

Sourcetree (Windows 7) returns following error message:

error: cannot spawn C:\Program Files\TortoiseGit\bin\TortoisePlink.exe: No such file or directory

fatal: unable to fork

I don't have TortoiseGit installed and use OpenSSH as SSH-Client.

Do I have to install TortoiseGit next to Sourcetree?

Thanks in advance :)

Kind Regards,

Michael

3 answers

1 accepted

Oh yeah, there is a variable 'GIT_SSH' set.

This was the fix.

It should point to the normal git binary (e.g. C:\Program Files (x86)\Git\bin\git.exe) instead of TortoiseGit binary.

Thanks!

Have you ever had TortoiseGit installed?

Did you copy this repository from another computer (instead of cloning from a remote)?

Even if you install TortoiseGit, you'll have problems: "Programm Files" should only have one "m".

Thanks for the fast reply!

I cloned this repo from another git instance and want push it to a bare gitlab repo.

Yes, I had TortoiseGit installed a few months ago.

May there some env variable set?

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 ...

647 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