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

This widget could not be displayed.

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 Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

857 views 2 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