在Visual Studio 2017中,通过SSH进行Git Push提交失败 [英] Git Push commit via SSH fails in Visual Studio 2017

查看:130
本文介绍了在Visual Studio 2017中,通过SSH进行Git Push提交失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是git的新手,正在尝试使其适合我的dev-project.我有一个Remote-Repo所在的Disk-Station,并且通过SSH进行通信.我已经读过,在Visual Studio 2017中通过ssh克隆失败( https://www.visualstudio.com/zh-cn/news/releasenotes/vs2017-relnotes#a-idkiteamexplorer-ateam-explorer-issues ),但推送不是在该网站上提及.他们说,可以通过命令行克隆来解决克隆问题.

I am new to git and trying to make it ready for my dev-project. I have a Disk-Station where my Remote-Repo is located and I communicate over SSH. I´ve read, that cloning over ssh fails in Visual Studio 2017 (https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes#a-idkiteamexplorer-ateam-explorer-issues), but pushing is not mentioned on that site. They say, that one can workaround the cloning-issue, by cloning with command line.

我已经做到了,并且能够在Visual Studio中使用并提交克隆的内容.但是,如果我尝试使用团队资源管理器,则会在输出窗口中收到以下消息:

I´ve done that, and I am able to work with and commit the cloned content in Visual Studio. But if I try to push in my Team Explorer, I get the following message in my output-window:

推送到远程存储库时遇到错误:Git失败并出现致命错误. 致命的:无法从远程存储库读取.

Error encountered while pushing to the remote repository: Git failed with a fatal error. fatal: Could not read from remote repository.

如果我通过命令行推送内容,它将起作用.但这并不(应该)那么方便. 我的远程URL看起来像ssh://<user>@<server>/Repos/Test.我读过一些有关拒绝访问或类似问题的问题,但我认为这不是我的问题,因为我没有收到任何与访问或权利相关的消息.

If I push the content via command-line, it works. But that is not as handy as it can (should) be. My Remote-URL looks like ssh://<user>@<server>/Repos/Test. I´ve read about some issues with denied access or something like that, but I think that is not my problem, as I didn´t recieved any access- or rights-related messages.

推荐答案

我真的不知道我是否只是没有看到它,或者来自MS/VS的某人是否在周末改变了某些东西,但是如果我尝试立即发布,会出现以下消息:

I don´t really know if I just didn´t see it, or if someone from MS/VS changed something during the weekend, but if I try to publish it now, the following message occurs:

我认为,目前此消息已回答了这个问题.

I think, this question is answered with this message at the moment.

这篇关于在Visual Studio 2017中,通过SSH进行Git Push提交失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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