2017-09-05 38 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

好的,我會試一試。謝謝! –