如何使PowerShell的停止显示,每当我推此消息

问题描述:

如何使PowerShell中停止显示如下消息:如何使PowerShell的停止显示,每当我推此消息

github上--credentials得到:github上:找不到命令

这每当我尝试sshgit pushgit pull时发生。

+0

你是不是想用'git'代替'github'? – 3ocene

检查你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。我并不确定我需要改变什么才能停下来。 –