c# - 当我尝试将我的代码添加到 GitHub 上的存储库时,出现类似 "Failed to push to the remote repositor..."的错误

标签 c# git visual-studio github

<分区>

我想将我的代码发布到 github,但我遇到了问题,因为我在 visual studio 中遇到了这个错误。

"Failed to push to the remote repository. See the Output window for more details."

在输出窗口中:

Error encountered while pushing to the remote repository: Git failed with a fatal error. HttpRequestException encountered. cannot spawn askpass: No such file or directory could not read Username for 'https://github.com': terminal prompts disabled

我正在尝试这个 Git failed with a > fatal error. could not read Username for但它不起作用。

有人会告诉我我还能做什么吗?我会补充说,两天前一切正常。

谢谢。

最佳答案

为了安全起见,github 删除了一个安全协议(protocol)来连接到 github 并破坏了很多客户端。

请参阅此文档来修复它:

https://developercommunity.visualstudio.com/content/problem/201457/unable-to-connect-to-github-due-to-tls-12-only-cha.html

关于c# - 当我尝试将我的代码添加到 GitHub 上的存储库时,出现类似 "Failed to push to the remote repositor..."的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48961108/

相关文章:

c# - 我应该使用结构而不是类来在 C# 中保存仅字符串数据吗?

git - 为什么 git 将文件内容存储为 blob?

git - 如何从 git 中的图形行知道分支名称?

visual-studio - 自定义 VS 项目模板中的项目引用

sql-server - 如何从现有服务器更新 SSAS Visual Studio 项目?

javascript - 从 ASP.NET MVC 局部 View 中调用 JavaScript

c# - Windows 8.1 应用程序中的 UnmanagedType.CustomMarshaler

git - 将 Change-Id 添加到所有提交

.net - 从现有 .Net 项目自动创建 UML 图的免费工具

c# - SOAP,在上传 c# 时获取上传请求的进度