Git Bash:remote:找不到命令

时间:2017-12-07 00:57:20

标签: git github git-bash

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

我之前从未在我的机器上安装过git,因此我下载了最新的安装程序并完成了选项。我选择“从Windows命令提示符使用Git”选项。安装完成后,有些命令无效。

Git Bash: enter image description here

Git CMD: enter image description here

我已经尝试手动设置PATH变量但是没有修复它,我仍然得到相同的'命令未找到'。

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

我在Windows 10机器上。

1 个答案:

答案 0 :(得分:3)

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

相关问题