git的“ hg标签--debug”

时间:2019-12-11 10:29:34

标签: git mercurial

我正在从Mercurial迁移到Git。

git中是否存在与以下Mercurial命令相同的等效命令:

hg tags --debug

谢谢

1 个答案:

答案 0 :(得分:1)

hg tags列出标签,所以我猜hg tags --debughg tags --verbose。在git中,它大致等同于

git tag --list -n1

请参见https://git-scm.com/docs/git-tag#Documentation/git-tag.txt--nltnumgt

更新。我对--debug的猜测是错误的。让我们对其进行修复:

git tag -l --format='%(refname) -> %(*objectname)'