但是,我们在用git clone 代码的时候,会出现这种问题
╰─$ git clone hades@IP:/home/hades/kernelCode.git 128 ↵
Cloning into 'kernelCode'...
ssh: connect to host IP port 22: Connection refused
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ssh 默认访问 22 端口
所以我们git clone set port
you can do it like this:
git clone ssh://git@IP:port/home/hades/kernelCode.git
Thanks To:
No comments:
Post a Comment