$ git push -uf origin maingit1213729123s passwordPermission denied please try againgit1213729123s passwordPermission denied please try againgit1213729123s passwordgit1213729123 Permission denied publi
这个错误提示意味着您的 Git 凭证被拒绝访问远程仓库。可能是因为您没有正确配置 SSH 密钥,或者您没有权限访问该仓库。
您可以尝试以下步骤来解决问题:
1.检查您是否正确配置了 SSH 密钥,并且已添加到您的 Git 帐户中。
2.确保您有访问该仓库的权限,您可以联系仓库管理员以获得访问权限。
3.如果您是第一次访问该仓库,请尝试使用 HTTPS 连接,而不是 SSH 连接。您可以使用以下命令更改远程仓库 URL:
git remote set-url origin https://your-repo-url.git
4.如果仍然无法解决问题,请检查您的网络连接是否正常,并且您的防火墙是否允许 Git 访问远程仓库。
5.最后,您可以尝试使用其他 Git 命令,例如 git fetch 或 git clone,看看是否能够访问远程仓库。
原文地址: https://www.cveoy.top/t/topic/1Uy 著作权归作者所有。请勿转载和采集!