Git Bash:远程:找不到命令

Git Bash: remote: command not found

我想将现有 github 存储库中的一个文件夹拆分到它自己的存储库中,所以我尝试按照此处的说明进行操作:https://help.github.com/articles/splitting-a-subfolder-out-into-a-new-repository/

我以前从未在我的机器上安装过 git,所以我下载了最新的安装程序并浏览了选项。我选择 'Use Git from windows command prompt' 选项。安装后,有些命令不起作用。

GitBash:

Git命令:

我也尝试过手动设置 PATH 变量,但这并没有解决问题,我仍然得到相同的 'command not found'。

这是最新 git 的错误吗?还是我搞砸了安装?

我在 windows 10 台机器上。

git 是远程程序,-v 是它的参数

首先,您需要克隆一个您想要的存储库,例如

git clone https://github.com/justinmeister/Mario-Level-1 mario_game

这将使用 git 远程设置创建一个名为 mario_game 的文件夹。

cd mario_game

git remote -v

现在您将看到遥控器为 https://github.com/justinmeister/Mario-Level-1