我正在从Mercurial迁移到Git。
git中是否存在与以下Mercurial命令相同的等效命令:
hg tags --debug
谢谢
答案 0 :(得分:1)
hg tags
列出标签,所以我猜hg tags --debug
是hg 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)'