【问题标题】:There is an error that when I push my latest code to coding当我将最新代码推送到编码时出现错误
【发布时间】:2017-09-05 04:58:06
【问题描述】:

问题:我将代码推送给项目编码经理,错误如下:

git push origin master
fatal: unable to access 'https://git.coding.net/hzChenwj/RCS.git/': The requested URL returned error code 403

如果你有同样的问题并解决了,你能给一些建议吗?

【问题讨论】:

    标签: commit git-push


    【解决方案1】:

    如果 https URL 在没有询问您的凭据(用户名+密码)的情况下回答 403,则表示缓存了错误的凭据。

    请参阅“Updating credentials from the OSX Keychain”以更新或删除该缓存中的条目。
    (或来自“How do you reset the stored credentials in 'git credential-osxkeychain'?”的建议之一)

    【讨论】:

    • 但是另一个项目还可以!所有操作都OK!
    • @Jason.Xu 您可以仅为一个 URL 缓存凭据:首先检查您的 OSX 钥匙串包含的内容。另外,检查两个存储库中git config credential.helper 的值(推送时有 403 的一个,以及它工作的一个)
    • 好的,我试试。谢谢!
    猜你喜欢
    • 1970-01-01
    • 2020-11-15
    • 1970-01-01
    • 1970-01-01
    • 2016-11-04
    • 1970-01-01
    • 2020-01-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多