Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.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/2/unit-testing/4.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
Git瓷器选项没有显示任何内容?_Git_Command Line Interface - Fatal编程技术网

Git瓷器选项没有显示任何内容?

Git瓷器选项没有显示任何内容?,git,command-line-interface,Git,Command Line Interface,我正试图解析来自命令git status--chi瓷的输出。 如本文所述 问题是,在cli中测试时,我没有得到任何输出: git status output: On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) nothing to commit, working directory clean 和--瓷器

我正试图解析来自命令git status--chi瓷的输出。 如本文所述

问题是,在cli中测试时,我没有得到任何输出:

git status

output:
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)
nothing to commit, working directory clean
--瓷器

git status --porcelain

output:
(nothing :)

有人能解释一下发生了什么吗?

如果您没有未跟踪的文件,也没有更改的文件
git状态--
不应该输出任何内容,尝试添加文件
触摸新建。文件
或更改现有文件,然后重试。

git状态--
仅以机器可读格式显示文件的状态。-检查退出代码以确保未发生错误(!=0表示错误)

由于“无需提交,工作目录清理”显示在
git status
中,您将得到一个空的文件列表更改一些文件或进行一些更改,您将看到一些输出