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

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

799 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