Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在Windows7上使用Git时出错_Git_Bash - Fatal编程技术网

在Windows7上使用Git时出错

在Windows7上使用Git时出错,git,bash,Git,Bash,windows7上的Git安装存在问题。在bash窗口中运行。我将cd放入我的wamp文件夹。 git初始化项目 一切都很好 现在的问题是,当我在我的项目下创建一个文件时,它会抛出一个无法找到命令的错误 步骤: 创建file1.txt (错误) sh.exe“:未找到创建:命令 有人知道发生了什么吗。。。 git——版本 git版本1.8.3.msysgit.0我认为它与git没有任何关系。create不是sh(bash shell)中的命令。我认为您应该使用touch file1.txt来创建

windows7上的Git安装存在问题。在bash窗口中运行。我将cd放入我的wamp文件夹。 git初始化项目 一切都很好

现在的问题是,当我在我的项目下创建一个文件时,它会抛出一个无法找到命令的错误

步骤: 创建file1.txt (错误)

sh.exe“:未找到创建:命令

有人知道发生了什么吗。。。 git——版本
git版本1.8.3.msysgit.0

我认为它与git没有任何关系。
create
不是sh(bash shell)中的命令。我认为您应该使用
touch file1.txt
来创建一个空白文件。

就是这样。谢谢