是否有一个公开的(或者可能没有)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 --porcelain
和git-diff-files --name-status
作为更用户友好的替代方案。
关于git - 可用的带有 --porcelain 选项的命令列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39202460/