Could not resolve hostname git.xxx.cn: nodename nor servname provided, or
Update failed
                    ssh: connect to host git.xxxx.cn port 22: Operation timed out
                    Could not read from remote repository.
                    
                    Please make sure you have the correct access rights
                    and the repository exists.

产生原因:没有权限或者host解析不生效。
解决办法:system preferences – sharing – Computer name,这里的名称,与/etc/hosts文件里面的不对应。