git push时报错 ssh: Could not resolve hostname origin: Name or service not known fatal: Could not read from remote repository.

ssh: Could not resolve hostname origin: Name or
service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

刚开始 一直以为是 没连上远程仓库的问题,鼓捣了一上午,

发现 是因为 我命令敲的 

git push origin: 远程分支名

正确应该是:

git push origin dev:data-dev

 

 
原文地址:https://www.cnblogs.com/lpp-11-15/p/13496207.html