无法在Windows中将克隆从一个文件夹克隆到另一个文件夹

时间:2016-02-02 18:12:23

标签: windows git ssh

我在C盘中创建了一个裸存储库,我试图通过发出以下命令(在Windows机器中)在D盘中克隆相同的存储库

+-----+----------------------+
| aid |         astr         |
+-----+----------------------+
|   1 | <thing_6"><thing_5"> |
|   2 | <thing_3"><thing_4"> |
+-----+----------------------+

但我无法克隆它,因为它出现了错误

git clone Username@Ip_address_of_my_machine:C:/path_to_the_git_repo

我已安装了CopSSH并设置了"Cloning into 'git_repos'... ssh: connect to host 192.168.0.5 port 22: Connection refused fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists." 个密钥和授权密钥。 正如github所述。

这个问题是因为我的电脑的动态IP地址来自服务提供商吗?或者这里缺少什么?

我在我的办公室电脑中尝试过相同的设置和安装,它与上面的git clone命令配合使用,不同的是办公电脑有静态IP但@home是动态IP

1 个答案:

答案 0 :(得分:2)

跳过ssh部分,因为它位于同一台机器上。因此,您希望项目位于D盘中:

git clone C:/path_to_the_git_repo