Mac上的SourceTree新建倉(cāng)庫(kù),從URL克隆起愈≈缓蓿或Push時(shí),要求輸入賬號(hào)密碼:
輸入四次賬號(hào)密碼后報(bào)錯(cuò):
“2019-01-25 17:07:08.977 git-credential-sourcetree[23269:483753] Something went wrong. one or more parameters required to renew token is nil.
fatal: Authentication failed for ‘https:/…git/’
2019-01-25 17:07:14.983 git-credential-sourcetree[23278:483854] Something went wrong. one or more parameters required to renew token is nil.
fatal: Authentication failed for ‘https://…git/’
2019
-01-25 17:07:22.999 git-credential-sourcetree[23285:484038] Something went wrong. one or more parameters required to renew token is nil.
Completed with errors, see above”
最終顯示無(wú)效URL路徑抬虽。
解決方法:
關(guān)閉SourceTree
從Finder中進(jìn)入路徑~/Library/Preferences/ 官觅,找到文件com.torusknot.SourceTreeNotMAS.plist,并刪除該文件
此時(shí)再打開SourceTree重新從URL克隆阐污,輸入一遍賬號(hào)密碼后應(yīng)該就可以了休涤。如果還不成功,重新執(zhí)行步驟1笛辟、2功氨,再加一步:
進(jìn)入Mac的“鑰匙串訪問”App:
點(diǎn)擊一下->鎖上,再點(diǎn)擊一下->解鎖
然后再重新啟動(dòng)SourceTree隘膘,重新登錄疑故,創(chuàng)建新倉(cāng)庫(kù),就能成功了弯菊!