git URL not a remote repo

Hello all,

I am new to SourceTree for Windows so forgive me if this is has already been answered.

When I add the URL from Gitlab


to the Repository and try to push I get the following error

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
Pushing to git@srvweldat02:tbeiganz/test_repo.git

fatal: 'tbeiganz/test_repo.git' does not appear to be a git repository
fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Completed with errors, see above.

Using the GIT Shell (Git Version 1.8.0-preview20121022) it works.

Also: Using the HTTP Url in SourceTree works.

Thanks for your help

1 answer

1 accepted

0 votes
Accepted answer

Hmm, SourceTree just calls git so it shouldn't behave any differenly to the Git shell, unless it's something to do with using PuTTY instead of OpenSSH. The Git Shell usually defaults to OpenSSH (which is to say, it uses your key from %USERPROFILE%\.ssh\id_rsa etc). You can tell SourceTree to use that too if you'd prefer, you do this in Preferences > SSH Client.


yes thanks, I changed the Agent to OpenSSH and now it works fine.

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,126 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