Git瓷器选项没有显示任何内容?
我正试图解析来自命令git status--chi瓷的输出。 如本文所述 问题是,在cli中测试时,我没有得到任何输出: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
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
中,您将得到一个空的文件列表更改一些文件或进行一些更改,您将看到一些输出