2016-10-11 27 views

回答

0

檢查你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+),這將阻止任何憑據幫手活躍在你的回購協議。

+0

基本上發生了什麼是這樣的: –

+0

基本上發生了什麼是:[image](http://imgur.com/a/Wb2ke) –

+0

而我想要做的就是希望它停止顯示後,我使用git pull或者git push。我並不確定我需要改變什麼才能停下來。 –

相關問題