2017-08-27 21 views
3

我混帳工作正常,那麼在不改變任何東西比下面的問題開始發生, 我曾嘗試在Github的企業 - 遠程:密碼驗證不適用於Git的操作

憑證重置緩存。助手

,並通過幾乎每一個計算器的回答了我能找到

remote: Password authentication is not available for Git operations. 
remote: You must use a personal access token or SSH key. 
remote: See https://github.ibm.com/settings/tokens or 
'https://github.ibm.com/WBurney/Blockchain_SDO.git/': 
The requested URL returned error: 403 

感謝

+0

'我嘗試重置緩存'...你實際上做了什麼?你可能已經閱讀了很多答案,但我們不知道你做了什麼來達到這個狀態。 –

回答

2

如果您已經註冊公共SSH密鑰您GitHib企業帳戶,你可以使用SSH URL

cd /path/to/repo 
git remote set-url origin [email protected]:WBurney/Blockchain_SDO.git 
git push 

但是對於你原來的問題,請嘗試,並按照「Creating a personal access token for the command line」側步的問題。

如果您在Mac上,update your credentials from the OSX Keychain

+0

我按照以下步驟添加我的SSH密鑰git https://git.ng.bluemix.net/help/ssh/README.md 然後我設置遠程URL使用 git remote set-url origin git @ github.ibm.com:WBurney/Blockchain_SDO.git 感謝您的幫助 –

+0

@MuhammadRaafayKhan您的操作系統和git版本是什麼? – VonC

+0

Ubuntu 17.04和git版本2.11.0 –