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

(git@srvweldat02:tbeiganz/test_repo.git)

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.

Hello,

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

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

273 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