我在ecs上创建了一个git仓库:/home/gitrepo/sample.git,在Windows中用git clone git@39.108.2.147:/home/gitrepo/sample.git命令克隆到本地时报错:
bash: git-upload-pack: command not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
题主您好,
或许您需要考虑一下防火墙或实例安全组的规则设置:https://help.github.com/enterprise/2.11/admin/guides/installation/network-ports-to-open/