如何使PowerShell中停止顯示如下消息:如何使PowerShell的停止顯示,每當我推此消息
github上--credentials得到:github上:找不到命令
這每當我嘗試ssh
的git push
或git pull
時發生。
如何使PowerShell中停止顯示如下消息:如何使PowerShell的停止顯示,每當我推此消息
github上--credentials得到:github上:找不到命令
這每當我嘗試ssh
的git push
或git pull
時發生。
檢查你git remote -v:你看到https,它不是一個ssh url。
確保推拉使用的是SSH網址:
git remote set-url origin [email protected]:username/repo.git
如果您正在使用HTTPS,Git會嘗試使用憑據幫手:看看git config -l | grep cred
回報什麼。這將解釋github: command not found
部分。
如果有,去你的回購和類型:
cd /path/to/my/repo
git config credential.helper ""
如果你的Git是足夠近(Git 2.9+),這將阻止任何憑據幫手活躍在你的回購協議。
基本上發生了什麼是這樣的: –
基本上發生了什麼是:[image](http://imgur.com/a/Wb2ke) –
而我想要做的就是希望它停止顯示後,我使用git pull或者git push。我並不確定我需要改變什麼才能停下來。 –
你是不是想用'git'代替'github'? – 3ocene