ssh: Could not resolve hostname github.com: Name or service not known
这个错误的原因是因为 remote origin 的 url 设置错误
出现这个问题普遍设置为了 下面这两种
https://git@github.com/userName/repo.git
or
ssh://git@github.com/userName/repo.git
其实不需要指定协议号
直接 设置为
git@github.com/userName/repo.git
这样就可以正确的使用git了