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,


3 answers

1 accepted

1 vote
Answer 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.


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

1,210 views 4 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