Github pull、clone 等可以工作但无法执行 Push

问题描述 投票:0回答:1

我对存储库有写权限。我能够执行克隆、拉取等操作,但只有 git Push 不起作用。我还可以从 Github 门户网站推送更改。它不提供任何错误详细信息,只提供致命信息。请帮忙

fatal: Could not read from remote repository.

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

检查了 SSH 密钥和其他与身份验证相关的可能问题。没有关系。

github
1个回答
0
投票

确保您的 Git 配置正确,尤其是 user.name 和 user.email 设置。您可以使用以下方法检查和设置这些配置:

git config --list

查找姓名和电子邮件,如果与您的不同,则通过以下命令更新:

git config --global user.name "Your Name"
git config --global user.email "[email protected]"
© www.soinside.com 2019 - 2024. All rights reserved.