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 Join to answer
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 ...

274 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot