【发布时间】: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
如果你有同样的问题并解决了,你能给一些建议吗?
【问题讨论】:
问题:我将代码推送给项目编码经理,错误如下:
git push origin master
fatal: unable to access 'https://git.coding.net/hzChenwj/RCS.git/': The requested URL returned error code 403
如果你有同样的问题并解决了,你能给一些建议吗?
【问题讨论】:
如果 https URL 在没有询问您的凭据(用户名+密码)的情况下回答 403,则表示缓存了错误的凭据。
请参阅“Updating credentials from the OSX Keychain”以更新或删除该缓存中的条目。
(或来自“How do you reset the stored credentials in 'git credential-osxkeychain'?”的建议之一)
【讨论】:
git config credential.helper 的值(推送时有 403 的一个,以及它工作的一个)