无法使用SourceTree连接到El Capitan上的git repo [英] Can't connect to git repo on El Capitan with SourceTree

查看:254
本文介绍了无法使用SourceTree连接到El Capitan上的git repo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Mac托管我们的代码(该代码已设置为git存储库),并在Windows 7上使用SourceTree执行推入,拉入等操作,直到最近,这种方法仍然工作正常自从将Mac上的操作系统更新为El Capitan以来,SourceTree不再希望推送.

I'm using a Mac to host our code, which is set up as a git repository, and performing my push, pull, and so on with SourceTree, on Windows 7. Up until recently, this was working fine, however since updating the OS on the Mac to El Capitan, SourceTree no longer wants to push.

我使用公钥/私钥身份验证,并且回购网址的格式为:

I use public key/private key authentication, and the repo url is of the format:

ssh://user @ IPAddress/path

ssh://user@IPAddress/path

如果我尝试使用PuTTy进行连接,则没有问题-选美正在运行,并且似乎正在做它的事情.

If I try to connect using PuTTy, there is no problem - pageant is running, and seems to be doing its thing.

当我尝试推送到SourceTree中的存储库时,它尝试了几分钟,然后出现以下错误:

When I try to push to the repo in SourceTree, it tries for a couple of minutes, and then I get the following error:

FATAL ERROR: Server unexpectedly closed network connection

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我以前没有任何问题,在Mac上的设置也没有任何更改,只是更新了操作系统.

I haven't had any problems previously, and there have been no changes to the set up on the Mac, just the updated OS.

我不明白为什么我可以连接PuTTy.任何帮助,我们将不胜感激!

I can't see why I would be able to connect with PuTTy. Any help is greatly appreciated!

推荐答案

我需要在Mac Mini上重新安装XCode开发人员工具.

I needed to reinstall the XCode developer tools on the Mac Mini.

我登录并运行

xcode-select --install

之后,推送成功.

我希望这对某人有帮助!

I hope this helps someone!

这篇关于无法使用SourceTree连接到El Capitan上的git repo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆