git - 可用的带有 --porcelain 选项的命令列表

标签 git

是否有一个公开的(或者可能没有)git 命令列表,其中 --porcelain 选项可用?或者我应该手动查看 the porcelain commands list 中的每个内容?

我已经成功用谷歌搜索到以下三个:

git status --porcelain
git push --porcelain
git blame --porcelain

但是还有吗?如果没有,我可以在某处找到有关是否会出现任何附加内容以及何时出现的信息吗?

UPD: 因此,这里是收集的当前可用命令的完整列表,其中包含 --porcelain 选项(基于下面的答案):

git annotate --porcelain
git blame --porcelain
git commit --porcelain
git push --porcelain
git status --porcelain
git worktree list --porcelain

将尽力使其与可用的新信息保持同步。如果您发现任何新内容,请在评论中留下回复或作为答案。

最佳答案

您可以组合:

这将确认您还拥有:

git commit --porcelain
git worktree list --porcelain

更多关于瓷器的含义,请看我的回答“What does the term “porcelain” mean in Git?

The meaning of --porcelain here is "produce output suitable for consumption by porcelain scripts".

请注意git blame选项可以传递给其他命令。这就是为什么git annotate 还有有一个--porcelain选项。

另外,在 Documentation 中查找 porcelain将返回 git ls-files ,它没有这样的选项,而是指git-status --porcelaingit-diff-files --name-status作为更用户友好的替代方案。

关于git - 可用的带有 --porcelain 选项的命令列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39202460/

相关文章:

git - 使用 Maven + Git 组织项目

git - Visual Studio 2013 共存 Ankh SVN 和 Git

ruby-on-rails - 推送到特定 Git 存储库时排除特定文件

java - 如何使用 JGit 做 "git push --mirror ..."的等价物?

git - 在 git 中使用插件维护项目

git push 在新分支失败

eclipse - 使用 EGit 克隆存储库导入但不允许我导入项目

git ls-tree 工作目录的输出?

git - jekyll 服务器已打开但未重新生成

git --git-dir 没有按预期工作