Git報錯could not read Username for 'https://github.com': terminal prompts disabled


發布到遠程存儲庫時遇到錯誤: could not read Username for 'https://github.com': terminal prompts disabled並且要求輸入賬號密碼就算輸入正確也無法正常發布

問題1.terminal prompts disabled

解決方法:配置環境變量 GIT_TERMINAL_PROMPT=1

 

問題2.需要輸入賬號密碼就算正確仍無法發布或者拉取

解決方法:

1)設置git保存http賬號密碼

git config --global credential.helper store

打開控制台程序輸入

 

2)手動拉取git工程,並輸入賬號密碼

如: 

 

成功克隆完成就沒問題了!!!

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM