MSYS2 shell中的Git克隆问题

时间:2018-01-30 23:17:57

标签: git shell msys

我正在尝试从Windows上的MSYS 2 shell中克隆GitHub存储库。我使用以下命令安装了git

pacman -S git

安装完成后,我尝试了以下命令:

$ git clone https://github.com/google/breakpad.git /src/breakpad
Cloning into '/src/breakpad'...
error: remote-curl: usage: git remote-curl <remote> [<url>]

该错误消息的含义是什么,以及如何解决?

1 个答案:

答案 0 :(得分:1)

直接从简单的CMD或基于msys2的shell(使用bash,包含在Git for Windows中)使用latest Git for Windows尝试相同的命令。

我刚试过它:

vonc@VONCAVN7 D:\git
> bash
vonc@voncavn7:/mnt/d/git$ git clone https://github.com/google/breakpad.git
Cloning into 'breakpad'...
remote: Counting objects: 17345, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 17345 (delta 0), reused 4 (delta 0), pack-reused 17341
Receiving objects: 100% (17345/17345), 39.39 MiB | 1.38 MiB/s, done.
Resolving deltas: 100% (13586/13586), done.

然后你可以回到原来的msys2 shell。