2017-09-05 47 views
0

问题一个错误:我把我的代码项目编码的经理,该错误是这样的:有,当我把我的最新代码编码

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

enter image description here

如果您遇到同样的问题并解决问题,您可以提出一些建议吗?

回答

0

如果https URL在不询问您的凭据(用户名+密码)的情况下回答403,那意味着缓存了错误的凭证。

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

+0

但是另一个项目是好的!所有的操作都OK! –

+0

@ Jason.Xu您可以只为一个URL缓存凭据:首先检查您的OSX钥匙串包含的内容。另外,请检查两个repos中的'git config credential.helper'的值(其中403是推入的地址,以及它的工作地址) – VonC

+0

好的,我会试一试。谢谢! –